title: sorting numerical values R
body: <p>I have a table (out) that looks like this:</p>
  
  <pre><code>V1    V2    V3
  A     x     0
  A     y     1
  A     z     10
  A     a     11
  A     b     12
  ...   ...   ...
  A     c     2
  A     d     21
  A     e     22
  ...   ...   ...
  A     f     3
  </code></pre>
  
  <p>I sorted this table based on V3 with this function</p>
  
  <pre><code>sorted.out &lt;- out[order(out$V3), ]   
  </code></pre>
  
  <p>However I want the values in V3 in numerical order like 1,2,3,4, ..., 10,11,12, ...
  and not like it is now 1,10,11,12, ...</p>
  
  <p>How can I do this?</p>
  
  <p>When I use str(out) my V3 comes out as a factor variable. I should change it to numerical probably?</p>