title: Sorting an array of hashes by a date field
body: <p>I have an object with many arrays of hashes, one of which I want to sort by a value in the 'date' key.</p>
  
  <pre><code> @array['info'][0] = {"name"=&gt;"personA", "date"=&gt;"23/09/1980"}
   @array['info'][1] = {"name"=&gt;"personB", "date"=&gt;"01/04/1970"}
   @array['info'][2] = {"name"=&gt;"personC", "date"=&gt;"03/04/1975"}
  </code></pre>
  
  <p>I have tried various methods using Date.parse and with collect but an unable to find a good solution.</p>
  
  <p><strong>Edit:</strong>
   To be clear I want to sort the original array in place</p>
  
  <pre><code>    @array['info'].sort_by { |i| Date.parse i['date'] }.collect
  </code></pre>
  
  <p>How might one solve this elegantly the 'Ruby-ist' way. Thanks</p>