Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
*Location*: https://docs.mongodb.org/manual/tutorial/sort-results-with-indexes/
*User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.97 Safari/537.36
*Referrer*: https://docs.mongodb.org/manual/core/index-compound/
*Screen Resolution*: 1920 x 1080
*repo*: docs
*source*: tutorial/sort-results-with-indexes
*Location*: https://docs.mongodb.org/manual/tutorial/sort-results-with-indexes/ *User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.97 Safari/537.36 *Referrer*: https://docs.mongodb.org/manual/core/index-compound/ *Screen Resolution*: 1920 x 1080 *repo*: docs *source*: tutorial/sort-results-with-indexes
Description
Sort on multifield paragraph
"You can specify a sort on all the keys of the index or on a subset; however, the sort keys must be listed in the same order as they appear in the index. For example, an index key pattern
can support a sort on
{ a: 1, b: 1 }but not on
{ b: 1, a: 1 }" the last sentence shouldn't say : " ... can support a sort on
{ a: 1, b: 1 }but not on
{ b: -1, a: 1 }"