-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Embedded Shell
-
None
-
Not Needed
In javascript in the shell fields are being reorder, with numeric ones first:
> x = {a:1, 10:1} {"10":1, "a":1}
This becomes a problem when I create a compound index with a numeric attribute name like 10 since the index is not created as expected.
- is duplicated by
-
SERVER-15753 Compound index is reordered automatically when used with numerical field keys
- Closed
-
SERVER-16365 Compound index creation does not follow the order we specifiy
- Closed
-
SERVER-34265 when field name is number,sort by multiple fields is incorrect
- Closed
-
SERVER-13933 compound index with numeric keys only
- Closed
- related to
-
COMPASS-4258 Sort does not preserve field order
- Closed
-
NODE-578 Order of sort fields is lost for numeric field names
- Closed
-
SERVER-15754 Allow createIndexes to take "key" field as an array
- Closed
-
SERVER-28569 Shell APIs violate ECMAScript's object property order spec
- Closed