title: Sorting csv file by 5th column using bash
body: <p>The file looks like</p>
  
  <pre><code>5.1,3.5,1.4,0.2,Banana
  4.9,3.0,1.4,0.6,Apple
  4.8,2.8,1.3,1.2,Apple
  </code></pre>
  
  <p>and I need to have it be</p>
  
  <pre><code>4.9,3.0,1.4,0.2,Apple
  4.8,2.8,1.3,1.2,Apple
  5.1,3.5,1.4,0.2,Banana
  </code></pre>
  
  <p>I have been trying to use</p>
  
  <pre><code>sort -t, -k5 file.csv &gt; sorted.csv
  </code></pre>
  
  <p>All it does is make it </p>
  
  <pre><code>5.1,3.5,1.4,0.2,Banana
  4.8,2.8,1.3,1.2,Apple
  4.9,3.0,1.4,0.6,Apple
  </code></pre>
  
  <p>How do I make it like this? It does not seem to be sorting it at all.</p>