Skip to content

Allow reversing Sort #2805

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

Closed
mp911de opened this issue Mar 29, 2023 · 0 comments
Closed

Allow reversing Sort #2805

mp911de opened this issue Mar 29, 2023 · 0 comments
Labels
type: enhancement A general enhancement

Comments

@mp911de
Copy link
Member

mp911de commented Mar 29, 2023

Out of spring-projects/spring-data-jpa#2885 we found it would be neat to have a Sort.inverse() or Sort.reverse() method that flips sort order and returns the reversed Sort object.

Given our variants Sort, QSort and store-specific sorts, this method would allow preserving the concrete sort type instead of reconstructing a plain Sort object.

@mp911de mp911de added the type: enhancement A general enhancement label Mar 29, 2023
@mp911de mp911de added this to the 3.1 GA (2023.0.0) milestone May 11, 2023
mp911de added a commit that referenced this issue May 11, 2023
We now allow reversing the sort order of Sort instances to flip ASC and DESC sort orders.

Closes #2805
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant