Closed imbolo closed 10 years ago
Example:
db('blog.users').find({}, {}, {sort: {age: -1}}, function(reply){ })
reply.documents is sorted by age in a decsending (acsending while it is {age:1} ) order.
Thanks so much, added you as a collaborator! :)
:) Pleasure to contribute to such a nice mongo diver.
Example:
db('blog.users').find({}, {}, {sort: {age: -1}}, function(reply){ })
reply.documents is sorted by age in a decsending (acsending while it is {age:1} ) order.