title: Laravel 4: how to "order by" using Eloquent ORM
body: <p>Simple question - how do I order by 'id' descending in Laravel 4.</p>
  
  <p>The relevant part of my controller looks like this:</p>
  
  <pre><code>$posts = $this-&gt;post-&gt;all()
  </code></pre>
  
  <p>As I understand you use this line:</p>
  
  <pre><code>-&gt;orderBy('id', 'DESC');
  </code></pre>
  
  <p>But how does that fit in with my above code?</p>