amark / mongous

Simple MongoDB driver for Node.js with jQuery like syntax.
MIT License
246 stars 30 forks source link

add a simple sorts implemention for find() #33

Closed imbolo closed 10 years ago

imbolo commented 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.

amark commented 10 years ago

Thanks so much, added you as a collaborator! :)

imbolo commented 10 years ago

:) Pleasure to contribute to such a nice mongo diver.