[SERVER-20788] Ordering results from $in query -- can Aggregation handle this ? Created: 06/Oct/15 Updated: 07/Oct/15 Resolved: 07/Oct/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Question | Priority: | Trivial - P5 |
| Reporter: | Michael Brenden | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
http://stackoverflow.com/questions/3142260/order-of-responses-to-mongodb-in-query |
| Comments |
| Comment by Stennie Steneker (Inactive) [ 07/Oct/15 ] |
|
Hi Michael, Ordering of results based on an $in query has already been suggested as a feature: see SERVER-7528. There's a comment on this issue from Aaron Staple which includes an example of how you might achieve this with the aggregation framework, and several other discussions on StackOverflow with different ideas. Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related community support discussion please post on the mongodb-users group (http://groups.google.com/group/mongodb-user) or Stack Overflow / ServerFault. Thanks, |