Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
Ubuntu12
*Location*: http://docs.mongodb.org/manual/reference/method/db.collection.find/
*User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.65 Safari/537.36
*Referrer*: https://www.google.de/
*Screen Resolution*: 1920 x 1200
*repo*: docs
*source*: reference/method/db.collection.find
Ubuntu12 *Location*: http://docs.mongodb.org/manual/reference/method/db.collection.find/ *User-Agent*: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.65 Safari/537.36 *Referrer*: https://www.google.de/ *Screen Resolution*: 1920 x 1200 *repo*: docs *source*: reference/method/db.collection.find
-
0.25
Description
Hello Sir/Madam,
It's not clear if the limit returns the first documents and based on which order they are returned.
Also the order of combining command:
find().sort().limit
and
find().limit().sort()
is not clear why is equivalent! I expect for the fist line to sort then to return the fist "n" documents while the second command I expect to return the "n" documents then to sort them
It will be helpful it you add more explanation here.
Best regards,
Naseem