-
Notifications
You must be signed in to change notification settings - Fork 484
Open
Description
Here's the implementation:
Lines 3295 to 3301 in 25b9a33
if (options.useJavascriptSorting) { | |
return this.sort(function (obj1, obj2) { | |
if (obj1[propname] === obj2[propname]) return 0; | |
if (obj1[propname] > obj2[propname]) return 1; | |
if (obj1[propname] < obj2[propname]) return -1; | |
}); | |
} |
But the unit test is trying to use this feature here:
LokiJS/spec/generic/ops.spec.js
Lines 251 to 253 in 25b9a33
var results = coll.chain().find( | |
{ 'nested.count': { $in: [15, 73] } } | |
).simplesort('nested.count').data(); |
Metadata
Metadata
Assignees
Labels
No labels