, .
, sort undefined.
, , , ..
- , , , findResults.sort undefined.
, , - , , ... - :
operation.call(collection, params.selector, params.fields, params.options,
function(error, result){
if (err) ....
else results.sort({field:1}, callback(err, sortedResults))
}
, "results.sort", ... , .
mongodb, . , , ...
-;
var sortedResults = results.sort({field:1};
callback(err, sortedResults)
In this case, execution continues, but it returns unsorted results.
Any other ideas? It must be there ....
thank
source
share