0

How do I (efficiently) sort a find() ?

Is it possible to use the filter in find() to sort(on the server) my query? Or do I need to get the data and sort locally?

really I just want the latest 'created_at' date....

I noticed that the filter docs mention "filter operator" but I dont seem to be able to find any more info on that....

 

thanks!

 

chris

1 comment

  • 0
    Avatar
    Chris Rogers

    duh, find_one() has an order field.... close enough. 

Please sign in to leave a comment.