title: Sorting timestamps in Eloquent
body: <p>Newbie here in Laravel 4. Say I have a model ("Activity") that has a timestamp column, along with other metadata. When I print it out in HTML, it is arranged from earliest to latest, which won't be ideal.I want to sort it from latest to earliest, because I'm going after an activity log.</p>
  
  <p>Here's the code on the view:</p>
  
  <pre><code>@foreach ($activities as $activity)
  &lt;tr class="activity"&gt;
      &lt;td&gt;{{ $activity-&gt;timestamp }}&lt;/td&gt;
      &lt;td&gt;{{ $activity-&gt;activity }}&lt;/td&gt;
  &lt;/tr&gt;
  @endforeach
  </code></pre>
  
  <p>Here's the controller code, which arranges these stuff:</p>
  
  <pre><code>public function getActivity()
  {
          return View::make('app.website.activity', array('activities' =&gt; Activity::all()));
  }
  </code></pre>
  
  <p>Is there anything I can do with Activity::all() to sort it out by time?</p>
  
  <p>Thanks!</p>