title: CI active record, escapes & order_by datetime column
body: <p>I've noticed that when ordering by a datetime column in CI with active record, it's treating the column as a string, or int.</p>
  
  <p>Example:</p>
  
  <pre><code>$this-&gt;db-&gt;limit(12);
      $this-&gt;db-&gt;where('subscribed',1);   
      $this-&gt;db-&gt;join('profiles','profiles.user_id=users.id');
      $this-&gt;db-&gt;where('active',1);
      $this-&gt;db-&gt;select('users.thumbUpload,users.vanity_url');
      $this-&gt;db-&gt;select('users.created_on as time');
      $this-&gt;db-&gt;order_by('time');
      $query = $this-&gt;db-&gt;get('users');
  </code></pre>
  
  <p>This is where users.created_on is a datetime field. Firstly, is it because active record is rendering <code>time</code> escaped, or is it something else? And if it is, can I prevent the escaping on order_by somehow?</p>
  
  <p>Also, stackoverflow, please stop autocorrecting 'datetime' to 'date time'. It's annoying.</p>
  
  <p>Cheers!</p>