amark / mongous

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

How to sort the find result? #32

Closed imbolo closed 10 years ago

imbolo commented 10 years ago

And i found that the find all operation return two collection while the data's length > 101.

amark commented 10 years ago

It is intentional that the callback is called multiple times, see #15 .

You can sort client side with JavaScript. However, I would love to have MongoDB sorts implemented - want to add it? I'll pull it and add you as a contributor. Let me know!

imbolo commented 10 years ago

Very glad to contribute to this project!

By the way, i found out how to sort the result.

amark commented 10 years ago

Awesome! Send me a pull request or... post your findings here, I'd love to learn how you did it! Thanks. :)

amark commented 10 years ago

Oh woops.. looks like you just sent me something! I'll check it out soon. Thanks!

amark commented 10 years ago

Awesome! Done. Added you. Thanks. (Closing).