[COMPASS-4258] Sort does not preserve field order Created: 22/Apr/20 Updated: 29/Oct/23 Resolved: 09/Apr/21 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | Query Bar |
| Affects Version/s: | 1.20.5 |
| Fix Version/s: | 1.27 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Stennie Steneker (Inactive) | Assignee: | Sergey Petushkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Compass 1.20.5 |
||
| Attachments: |
|
||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||
| Story Points: | 3 | ||||||||||||||||||||
| Documentation Changes: | Not Needed | ||||||||||||||||||||
| Sprint: | Iteration Yucca, Iteration Z | ||||||||||||||||||||
| Description |
|
It looks like Compass does not preserve the order of sort keys. This manifests the same JavaScript problem as 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. |
| Comments |
| Comment by Githook User [ 09/Apr/21 ] |
|
Author: {'name': 'Sergey', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}Message: fix(crud, query-bar): Allow new project syntax and arrays in sort in query bar |