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