title: bash sorting numbers with decimals
body: <p>I have a file like so:</p>
  
  <pre><code>1.1
  3.2
  1.2
  1.10
  </code></pre>
  
  <p>I would like to sort the file so that it looks like so:</p>
  
  <pre><code>1.1
  1.2
  1.10
  3.2
  </code></pre>
  
  <p>In other words, 1.10 is bigger than 1.2</p>
  
  <p>I tried: </p>
  
  <pre><code>sort -nk 1,1 file
  </code></pre>
  
  <p>But I keep getting this, which is not what I want</p>
  
  <pre><code>1.1
  1.10
  1.2
  3.2
  </code></pre>
  
  <p>Thanks</p>