how to order array in mongoose code example
Example: sort mongoose response
Blah.find({}).sort({date: -1}).execFind(function(err,docs){
//code
});
-1 for descending & 1 for ascending
Blah.find({}).sort({date: -1}).execFind(function(err,docs){
//code
});
-1 for descending & 1 for ascending