Skip to content

Commit 0422055

Browse files
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]>
1 parent 7a0e60b commit 0422055

File tree

2 files changed

+2182
-2142
lines changed

2 files changed

+2182
-2142
lines changed

0 commit comments

Comments
 (0)