title: sorting a multidimensional array in ruby
body: <p>I have the following array:</p>
  
  <p><code>[["2010-01-10", 2], ["2010-01-09", 5], ["2009-12-11", 3], ["2009-12-12", 12], ["2009-12-13", 0]]</code></p>
  
  <p>I just want to sort it by the second value in each group and return the highest one, like i want to the output to be <code>12</code> with the given input above.</p>
  
  <p><strong>update</strong></p>
  
  <p>I might add that I made this into an array using <code>to_a</code>, from a hash, so if there is away to do the same with a hash that would be even better.</p>