title: Codeigniter order_by()
body: <p>I am building a blog in Codeigniter to get more familiar with it and to help my PHP and CI skills. on my main page where I am displaying posts I am trying to get the newest post to show first but my below code is not working. any thoughts? I have looked and found some info that I have added to the code but it still is not working. The below does not have any errors when I load the page but it is not ordering them either.</p>
  
  <p>Thanks in advance </p>
  
  <pre><code>$data['posts'] = $this-&gt;db-&gt;order_by('post_id','DECS')-&gt;get('posts', $config['per_page'],$this-&gt;uri-&gt;segment(3));
  </code></pre>