Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4258

Sort does not preserve field order

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.27
    • 1.20.5
    • Query Bar
    • None
    • Compass 1.20.5
    • 3
    • Not Needed
    • Iteration Yucca, Iteration Z

    Description

      It looks like Compass does not preserve the order of sort keys.

      This manifests the same JavaScript problem as SERVER-11358 / NODE-578 when numeric-like keys are used.

      For example, a sort order of:

      {'65534':1, '65533':1}

      ends up as:

      {'65533':1, '65534':1}

      An order-preserving data structure should be used.

      Attachments

        Activity

          People

            sergey.petushkov@mongodb.com Sergey Petushkov
            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: