-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Support for sorting simple arrays (integers/strings) with SortArray (Fixes #4929) #4943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Support for sorting simple arrays (integers/strings) with SortArray (Fixes #4929) #4943
Conversation
…ray (Fixes spring-projects#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 <ranzyblessings.inbox@gmail.com>
Hello team, I’ve addressed the issue with sorting simple arrays (integers/strings) in PR #4943. The fix includes the addition of the byValueAscending() and byValueDescending() methods, along with updated tests to ensure correct functionality. Please don’t hesitate to reach out if any further modifications or adjustments are needed. I’m happy to make any necessary changes. Best regards, Fixes #4929 |
Thank you @ranzyblessings! we'll have a look. |
Thanks @christophstrobl! Let me know if anything needs adjusting. Also, just a heads-up on the |
…ixes spring-projects#4929) spring-projects#4943 - Removed unnecessary whitespaces - 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. - Removed unnecessary whitespaces and formatting changes to ensure clean, readable code. For more details, refer to: https://www.mongodb.com/docs/manual/reference/operator/aggregation/sortArray/ Signed-off-by: Ranzy Blessings <ranzyblessings.inbox@gmail.com>
…h SortArray (Fixes spring-projects#4929) to cleanup excessive formatting" This reverts commit 0422055. Signed-off-by: Ranzy Blessings <ranzyblessings.inbox@gmail.com>
…ixes spring-projects#4929) spring-projects#4943 - Removed unnecessary whitespaces - 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. - Removed unnecessary whitespaces and formatting changes to ensure clean, readable code. For more details, refer to: https://www.mongodb.com/docs/manual/reference/operator/aggregation/sortArray/ Signed-off-by: Ranzy Blessings <ranzyblessings.inbox@gmail.com>
bf38afb
to
73f92a6
Compare
byValueAscending()
andbyValueDescending()
to the SortArray classto support sorting simple array types (e.g., integers, strings) in ascending and descending order.
For more details, refer to: https://www.mongodb.com/docs/manual/reference/operator/aggregation/sortArray/
Signed-off-by: Ranzy Blessings ranzyblessings.inbox@gmail.com