title: Filter, sort and paginate in Codeigniter
body: <p>Ive recently started using CodeIgniter as I was searching for a very lightweight framework and it seemed to come up as a top choice.</p>
  
  <p>I am new to the whole MVC thing, enjoying it but am stuck with something which seems very simple.</p>
  
  <p>I am coding a CMS and need a way to filter, sort and paginate the results. I am used to doing it with querystrings, so I would have something along the lines of:</p>
  
  <pre><code>articles.php?order=title&amp;sort=desc&amp;filter=articletitle&amp;page=5
  </code></pre>
  
  <p>I have no idea how I would go about doing this in CI so I just turned on the EnableQueryStrings in the config and it works fine, but i am getting the feeling its probably not the most elegant solution.</p>
  
  <p>I suppose I could have </p>
  
  <pre><code>index.php/articles/index/order/title/sort/desc/filter/articletitle/page/5
  </code></pre>
  
  <p>but to me this seems very inflexible, what if for example i dont need to sort, how would i make sure i am looking at the correct uri segment?</p>
  
  <p>any ideas?</p>