Skip to content

Sort.descending and Sort.ascending lose null handling and case-sensitivity flags #2585

Closed
@jansu76

Description

@jansu76

I was puzzled for a while when I used Sort.descending(). Javadoc says

Returns a new {@link Sort} with the current setup but descending order direction.

I had set ignoreCase to true on Order but switching to descending sorting negated that change. I understood "with the current setup" to keep ignoreCase setting as is.

https://stackoverflow.com/questions/71485388/why-does-spring-datas-sort-descending-reset-ignorecase

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions