Compound index is reordered automatically when used with numerical field keys

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.6.5
    • Component/s: Index Maintenance
    • None
    • ALL
    • Hide

      db.getCollection("test").ensureIndex(

      {"13":1,"12":1}

      )
      -> result: compound Index 12_1_13_1

      Show
      db.getCollection("test").ensureIndex( {"13":1,"12":1} ) -> result: compound Index 12_1_13_1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When i create an compound index on field keys with numerical characters i cannot define the order. It gets reorderd in ascending order.

              Assignee:
              Unassigned
              Reporter:
              Christof Rudolph
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: