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

Comment on: "core/index-compound.txt"

    XMLWordPrintableJSON

Details

    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 } )

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            balthazar Balthazar Rouberol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 20 weeks, 6 days ago