Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-7060

Comment on: "manual/tutorial/sort-results-with-indexes.txt"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • None

    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 }

      "

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 2 weeks, 5 days ago