[DOCS-13063] Add the sort behaviour in the aggregation push accumlator Created: 30/Sep/19 Updated: 30/Oct/23 Resolved: 20/Apr/21 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Sagar | Assignee: | Naomi Pentrel (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | docs-onboarding-candidate | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Participants: | |||||
| Days since reply: | 2 years, 42 weeks, 1 day ago | ||||
| Epic Link: | DOCSP-1769 | ||||
| Story Points: | 2 | ||||
| Description |
DescriptionCan we add a sort behavior for push operator just like we have for last and first accumulator ? https://docs.mongodb.com/manual/reference/operator/aggregation/last/#behavior https://docs.mongodb.com/manual/reference/operator/aggregation/first/#behavior Something like Behavior¶When using $push in a $group stage, the $group stage should follow a $sort stage to have the input documents in a defined order. NOTE Although the $sort stage passes ordered documents as input to the $group stage, $group is not guaranteed to maintain this sort order in its own output.
Scope of changesImpact to Other DocsMVP (Work and Date)Resources (Scope or Design Docs, Invision, etc.) |
| Comments |
| Comment by Githook User [ 20/Apr/21 ] |
|
Author: {'name': 'Naomi Pentrel', 'email': '5212232+npentrel@users.noreply.github.com', 'username': 'npentrel'}Message: |
| Comment by Githook User [ 20/Apr/21 ] |
|
Author: {'name': 'Naomi Pentrel', 'email': '5212232+npentrel@users.noreply.github.com', 'username': 'npentrel'}Message: |
| Comment by Githook User [ 20/Apr/21 ] |
|
Author: {'name': 'Naomi Pentrel', 'email': '5212232+npentrel@users.noreply.github.com', 'username': 'npentrel'}Message: |
| Comment by Githook User [ 20/Apr/21 ] |
|
Author: {'name': 'Naomi Pentrel', 'email': '5212232+npentrel@users.noreply.github.com', 'username': 'npentrel'}Message: |
| Comment by Githook User [ 19/Apr/21 ] |
|
Author: {'name': 'Naomi Pentrel', 'email': '5212232+npentrel@users.noreply.github.com', 'username': 'npentrel'}Message: |
| Comment by Naomi Pentrel (Inactive) [ 23/Mar/21 ] |