title: How to sort_by date in Ruby (not Rails)?
body: <p>I know that Rails has sorting methods built into ActiveRecord, but I am just writing a plain-old ruby script and would love to sort the records from an array by date.</p>
  
  <p>The date would be stored in one of the cells of the multi-dimensional array.</p>
  
  <p>What's the best way for me to approach this, so I can get to the point where I just do <code>sort_by_date</code> and I indicate either <code>ASC</code> or <code>DESC</code>?</p>
  
  <p>I don't have to use the method <code>sort_by_date</code>, but the idea is I would like to be able to easily call a method on the collection and get the results I want.</p>
  
  <p>Thoughts?</p>