You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: Support for sorting simple arrays (integers/strings) with SortArray (Fixes#4929)
- Added methods `byValueAscending()` and `byValueDescending()` to the SortArray class
to support sorting simple array types (e.g., integers, strings) in ascending and descending order.
- Updated tests to verify the correct functionality of sorting arrays by value.
- Refactored SortArray to handle sorting of simple types without requiring a property for sorting.
For more details, refer to: https://www.mongodb.com/docs/manual/reference/operator/aggregation/sortArray/
Signed-off-by: Ranzy Blessings <[email protected]>
0 commit comments