backbone-db-redis
Advanced tools
Comparing version 0.0.42 to 0.0.43
@@ -327,2 +327,3 @@ var _ = require('lodash'), | ||
var setKey = options.indexKey || collection.indexKey; | ||
var dynamicSorted = false; | ||
@@ -348,2 +349,3 @@ var done = function(err, data) { | ||
var opts = _.extend(setOpts, options); | ||
if (dynamicSorted) opts.sort = false; | ||
collection.set(models, opts); | ||
@@ -380,2 +382,3 @@ return cb(err, models); | ||
if (options.sort && collection.model.prototype.redis_type === 'hash') { | ||
dynamicSorted = true; | ||
var m = new collection.model(); | ||
@@ -382,0 +385,0 @@ var idKey = self.getIdKey(m); |
{ | ||
"name": "backbone-db-redis", | ||
"version": "0.0.42", | ||
"version": "0.0.43", | ||
"description": "Redis driver for Backbone.Db", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
77080
2289