-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
status: ideal-for-contributionAn issue that a contributor can help us withAn issue that a contributor can help us withtype: enhancementA general enhancementA general enhancement
Milestone
Description
Referring to https://www.mongodb.com/docs/manual/reference/operator/aggregation/sortArray/
sorting of simple e.g. int array should be possible:
"$sortArray":
{
"input": [ 1, 4, 1, 6, 12, 5 ],
"sortBy": 1
}
however ArrayOperators.SortArray.by
only accepts type Sort
, which seems to always require a property. Not clear if any way to set a simple ASC/DESC
order to sort by.
Seems simple feature that has been missed off, or if possible missed of documentation on how to achieve?
Metadata
Metadata
Assignees
Labels
status: ideal-for-contributionAn issue that a contributor can help us withAn issue that a contributor can help us withtype: enhancementA general enhancementA general enhancement
Timeline cannot be loaded
The timeline is currently unavailable due to a system error. Try reloading the page. Contact support if the problem persists.