Commit 0422055
Ranzy Blessings
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- spring-data-mongodb/src
- main/java/org/springframework/data/mongodb/core/aggregation
- test/java/org/springframework/data/mongodb/core/aggregation
2 files changed
+2182
-2142
lines changed
0 commit comments