Skip to content

Allow reversing Sort #2805

Closed
Closed
@mp911de

Description

@mp911de

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions