tepkin
tepkin copied to clipboard
Implement sort on find()
I think the MongoCollection.find
method is missing the sort
parameter, making it impossible to sort simple queries.
You can use the $orderby
operator as a workaround: http://docs.mongodb.org/manual/reference/operator/meta/orderby/
Here is an example: https://github.com/fehmicansaglam/tepkin/blob/master/tepkin%2Fsrc%2Fmain%2Fscala%2Fnet%2Ffehmicansaglam%2Ftepkin%2FGridFs.scala#L104