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

Sort does not preserve field order

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.27
    • Affects Version/s: 1.20.5
    • Component/s: Query Bar
    • None
    • Environment:
      Compass 1.20.5
    • 3
    • Not Needed
    • Iteration Yucca, Iteration Z

      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.

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

              Created:
              Updated:
              Resolved: