diff --git a/lib/sqlite-store.js b/lib/sqlite-store.js
index <HASH>..<HASH> 100755
--- a/lib/sqlite-store.js
+++ b/lib/sqlite-store.js
@@ -240,7 +240,7 @@ module.exports = function (options) {
 
     if (q.sort$) {
       for (var sf in q.sort$) break
-      var sd = q.sort$[sf] < 0 ? 'ASC' : 'DESC'
+      var sd = q.sort$[sf] > 0 ? 'ASC' : 'DESC'
       mq.push('ORDER BY ' + sf + ' ' + sd)
     }
Fixed sorting error where list is sorted in descending order when ascending order is specified and vice versa