title: Get all entities ordered with Doctrine query builder
body: <p>I'm getting a little crazy with this. I have a PhoneCodes entity and I simply want to retrieve all entities ordered by a field so no where condition but I tried to achieve this by many ways and not working. Currently I have this:</p>
  
  <pre><code> $phonecodes = $this-&gt;getDoctrine()
  -&gt;getRepository('AcmeDemoBundle:PhoneCodes')
  -&gt;createQueryBuilder('p')
  -&gt;orderBy('p.length', 'ASC')
  -&gt;getQuery()
  -&gt;getResult();
  </code></pre>
  
  <p>What's the way to do this? Thanks.</p>