Sort data ignoring case #1673
SShahmuradli
started this conversation in
General
Replies: 1 comment
-
Case insensitive ordering can be achieved by simply ordering by the lower or uppercase of the string. You'd do this the same in plain JPQL. So |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am faced with the task of making data sorting case insensitive. Solving a problem using blazebit does not seem like a primitive task. How can I sort by sortBy ignoring the case? Thanks in advance!
public getResultForQuery(
CriteriaBuilder criteriaBuilder,
String sortBy,
boolean asc
) {
...
List resultList = criteriaBuilder.orderBy(sortBy, asc).getResultList();
...
}
Beta Was this translation helpful? Give feedback.
All reactions