title: Doctrine: how to add a if statement in an order by condition?
body: <p>I try to write this kind of query :</p>
  
  <pre><code>    $qb = $this
          -&gt;createQueryBuilder()
          -&gt;select('gh')
          -&gt;orderBy("IF(gh.language = 'en', 1, 0)", 'desc')
          -&gt;getQuery();
  </code></pre>
  
  <p>How can it work ?</p>