summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2006-09-22 06:39:05 +0000
committerBrian S. O'Neill <bronee@gmail.com>2006-09-22 06:39:05 +0000
commit4ce68905b7d0d418b89ecac77573a730a61527e6 (patch)
tree7b638dced8a38707b6e95dfbdc10212cedb0e644 /src/main/java/com/amazon/carbonado
parentb503b09219e7aad8bb5d067ccd9e09d248590451 (diff)
Ordering property directions should be reversed if index is reversed.
Diffstat (limited to 'src/main/java/com/amazon/carbonado')
-rw-r--r--src/main/java/com/amazon/carbonado/qe/IndexedQueryExecutor.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/qe/IndexedQueryExecutor.java b/src/main/java/com/amazon/carbonado/qe/IndexedQueryExecutor.java
index cc342c6..fd3ab4f 100644
--- a/src/main/java/com/amazon/carbonado/qe/IndexedQueryExecutor.java
+++ b/src/main/java/com/amazon/carbonado/qe/IndexedQueryExecutor.java
@@ -189,6 +189,9 @@ public class IndexedQueryExecutor<S extends Storable> extends AbstractQueryExecu
if (mIdentityCount > 0) {
list = OrderingList.get(list.subList(mIdentityCount, list.size()));
}
+ if (mReverseOrder) {
+ list = list.reverseDirections();
+ }
return list;
}