Permalink
Browse files

Support ascending (normal) order

  • Loading branch information...
1 parent 3b261af commit 152db777373de3859ab0675e92bc0eca22b1fa69 @jhs jhs committed Apr 9, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 query_couchdb.js
View
@@ -241,6 +241,8 @@ Query.prototype.query = function() {
else if(!op && filter.order) {
if(filter.order === 'down' && direction === 'equal')
query.descending = true;
+ else if(filter.order === 'up' && direction === 'equal')
+ query.descending = false;
else
throw new Error('Cannot filter: ' + JSON.stringify(filter));
}

0 comments on commit 152db77

Please sign in to comment.