diff --git a/lib/adapters/redis.js b/lib/adapters/redis.js index da042f7d..aaf8a05a 100644 --- a/lib/adapters/redis.js +++ b/lib/adapters/redis.js @@ -243,8 +243,10 @@ BridgeToRedis.prototype.all = function all(model, filter, callback) { orders = [filter.order]; } orders.forEach(function (key) { - if (props[key].type.name !== 'Number' && props[key].type.name !== 'Date') { - allNumeric = false; + if (key !== 'id') { + if (props[key].type.name !== 'Number' && props[key].type.name !== 'Date') { + allNumeric = false; + } } sortCmd.push("BY", model + ":*->" + key); });