[DOCS-7060] Comment on: "manual/tutorial/sort-results-with-indexes.txt" Created: 29/Jan/16  Updated: 03/Nov/17  Resolved: 29/Feb/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

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


Participants:
Days since reply: 8 years, 2 weeks, 5 days ago

 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

{ a: 1, b: 1 }

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 }

"


Generated at Thu Feb 08 07:53:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.