title: Sort CSV based on a certain column?
body: <p>I'm sure I've done this in the past and there is something small I'm forgetting, but how can I sort a CSV file on a certain column? I'm interested in answers with and without 3rd party Perl modules. Mainly methods without, since I don't always have access to install additional modules.</p>
  
  <p>Example data:</p>
  
  <pre>name,25,female
  name,24,male
  name,27,female
  name,21,male</pre>
  
  <p>desired end result after sorting on the 2nd numeric column:</p>
  
  <pre>name,21,male
  name,24,male
  name,25,female
  name,27,female</pre>