I have a situation where I'd like to order my data from mongodb defining my own function.
something like that:
Items .find() .sort(myFunction()) .exec(callback);
do someone have some idea how to do that!?
No comments:
Post a Comment