title: Extending my ORDER BY in Doctrine2
body: <p>I have a table that holds version numbers and I want to read them out naturally sorted.<br>
  This is no problem with raw SQL:</p>
  
  <pre><code>SELECT * FROM versions ORDER BY REPLACE(version, '.', '')+0 DESC
  </code></pre>
  
  <p>But if I write my query in Doctrine2 like this:</p>
  
  <pre><code>$qry = $this-&gt;createQueryBuilder('v')
    -&gt;select('v')
    -&gt;orderBy("REPLACE(v.version, '.', '')+0", 'DESC');
  </code></pre>
  
  <p>I only get</p>
  
  <blockquote>
    <p>Fatal error: Uncaught exception 'Doctrine\ORM\Query\QueryException' with message '[Syntax Error] line 0, col 100: Error: Expected end of string, got '('' in .......</p>
  </blockquote>
  
  <p>Does anybody know how to write this query for Doctrine2?</p>