title: sort table records in descending order - symfony
body: <p>I have a table of records in the db where the last inserted record is the last in the table row of records. In my symfony application I have a snippet that fetches data from the db but the last inserted record is the last in the view when the result is iterated through. Here is the snippet</p>
  
  <p><strong>EDITED</strong></p>
  
  <pre><code>$restresults = $this-&gt;getDoctrine()-&gt;getRepository('myBundle:Images')-&gt;findAll();
  </code></pre>
  
  <p>How can I sort the above doctrine snippet in descending order whereby the last inserted becomes the first record. </p>