title: How to order string columns differently
body: <p>I have a has_many association like this:</p>
  
  <pre><code>has_many  :respostas_matriz_alternativas, :class_name =&gt; 'RespostaMatrizAlternativa',
            :order =&gt; 'respostas_matriz.codigo asc',
            :include =&gt; :resposta_matriz
  </code></pre>
  
  <p>Well the fragment that matters is the "order". Codigo is a varchar column wich will contain in most cases numeric values. To show this data I need to order it by code, but when I have only numbers the order becomes awkward, something like:</p>
  
  <p>1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20, ...</p>
  
  <p>What do you suggest for me to solve it?</p>
  
  <p>Thanks.</p>