title: sort result of sql query by order of field in where clause of query
body: <p>I want to sort the result of this query according to the contains of the query : </p>
  
  <p>here it is :</p>
  
  <p><code>SELECT a from Frais a where a.libelle = 'FRET' or a.libelle = 'Douane' or a.libelle = 'Transitaire'</code></p>
  
  <p>I would like to have the records that have <code>FRET</code> first and <code>Douane</code> after and so on</p>
  
  <pre><code>order by libelle 
  </code></pre>
  
  <p>doesn't resolve the problem it sort them according to alphabetic order asc or desc</p>