[SERVER-15753] Compound index is reordered automatically when used with numerical field keys Created: 21/Oct/14  Updated: 21/Oct/14  Resolved: 21/Oct/14

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: 2.6.5
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Christof Rudolph Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates MONGOSH-1037 Numeric field are sorted to the front... Closed
Related
related to SERVER-15754 Allow createIndexes to take "key" fie... Closed
Operating System: ALL
Steps To Reproduce:

db.getCollection("test").ensureIndex(

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

)
-> result: compound Index 12_1_13_1

Participants:

 Description   

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



 Comments   
Comment by Scott Hernandez (Inactive) [ 21/Oct/14 ]

This is a known javascript shell behavior: SERVER-11358

Please use another language, which supports direct ordering, to create your indexes.

Generated at Thu Feb 08 03:38:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.