-
Notifications
You must be signed in to change notification settings - Fork 81
DOCSP-47211-default-sort-order-setting #724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
fe18a51
DOCSP-47211-default-sort-order-setting
ltran-mdb2 cd8c521
DOCSP-47211-default-sort-order-setting
ltran-mdb2 be4eb70
DOCSP-47211-default-sort-order-setting
ltran-mdb2 a94881d
DOCSP-47211-default-sort-order-setting
ltran-mdb2 b00f3d2
DOCSP-47211-default-sort-order-setting
ltran-mdb2 8cd048b
DOCSP-47211 copy edits
ltran-mdb2 dd37997
DOCSP-47211 t3ech edit
ltran-mdb2 e4379ab
DOCSP-47211 tech edit
ltran-mdb2 94f237e
DOCSP-47211 tech edit
ltran-mdb2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| .. _compass-sort-query-bar: | ||
|
|
||
| ====================== | ||
| Set Default Sort Order | ||
| ====================== | ||
|
|
||
| .. contents:: On this page | ||
| :local: | ||
| :backlinks: none | ||
| :depth: 2 | ||
| :class: singlecol | ||
|
|
||
| You can specify a default sort order for documents shown in Compass through the | ||
| :guilabel:`Settings` panel. | ||
|
|
||
| .. note:: | ||
|
|
||
| If you specify a sort order through a query in the Query Bar, the sort order | ||
| that you specify in the query overrides the default sort order. | ||
|
|
||
| If you :ref:`save a query <compass-favorite-queries>`, Compass does not save | ||
| the default sort order as part of the saved query. | ||
|
|
||
| About This Task | ||
| --------------- | ||
|
|
||
| You can choose one of the following default sort options: | ||
|
|
||
| .. list-table:: | ||
| :header-rows: 1 | ||
| :stub-columns: 1 | ||
| :widths: 20 80 | ||
|
|
||
| * - Sort Key | ||
| - Description | ||
|
|
||
| * - $natural: 1 | ||
| - Sort in the natural order of documents | ||
|
|
||
| * - $natural: -1 | ||
| - Sort in reverse natural order of documents | ||
|
|
||
| * - _id: 1 | ||
| - Sort in ascending order by the ``_id`` field | ||
|
|
||
| * - _id: -1 | ||
| - Sort in descending order by the ``_id`` field | ||
|
|
||
| Procedure | ||
| --------- | ||
|
|
||
| .. procedure:: | ||
| :style: normal | ||
|
Check failure on line 53 in source/settings/set-default-sort.txt
|
||
|
|
||
| .. include:: includes/fact-navigate-to-settings.rst | ||
|
|
||
| .. step:: Open the :guilabel:`Default Sort for Query Bar` dropdown menu. | ||
|
|
||
| .. step:: Select the default sort order you would like to use. | ||
|
Check failure on line 59 in source/settings/set-default-sort.txt
|
||
|
|
||
| .. step:: Click :guilabel:`Save`. | ||
|
|
||
| .. note:: | ||
|
|
||
| If you do not specify a default sort order, Compass uses the MongoDB server | ||
| default sort order of ``$natural: 1``, unless otherwise specified in the | ||
| Query Bar. | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: We don't use it widely, but with these sort of lexical reference tables the
:stub-columns: 1option sometimes helps with formatting for clarity.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done