title: Laravel Sorting data from db with where clause
body: <p>So i have this in my controller </p>
  
  <pre><code>public function index()
  {
      $posts = Post::where('reviewed', '=' , 1)-&gt;orderBy('created_at', 'DESC');
      $url = asset('img/logo.gif');
      $mytime = Carbon\Carbon::now();
      $this-&gt;layout-&gt;content = View::make('partials.index', array('posts' =&gt; $posts-&gt;paginate(9)))-&gt;with('img', $url)-&gt;with('date' , $mytime);
  }
  </code></pre>
  
  <p>What i want to happen is i want to sort out my post by created_at time stamp but i dont know how to do this properly and this line in $post var ->orderBy('created_at', 'DESC') doesn't seem to work. </p>
  
  <p>so how can i do this properly? </p>