I search table with Criteria Query and filter it with name field. i filter records that have name like %user-entered-name%.
then sort result with name column. now i have a problem. i will it sort like following:
- name (First list records that his name is equal to user entered name)
- name* (Second list records that his name starts with user entered name)
*name*
(In the last list records that hist name contains user entered name)
is there any solution for it in jpa.
thanks alot.