Details
-
Improvement
-
Resolution: Done
-
Minor - P4
-
None
-
None
Description
I think the second example query of the http://docs.mongodb.org/manual/core/index-compound/#sort-order paragraoph is mis-typed.
The query is supposed to "return results sorted first by descending username values and then by ascending date values", which should be
db.events.find().sort( { username: -1, date: 1 } )
and not
db.events.find().sort( { username: 1, date: -1 } )