title: Sort in ruby a JSON array of hashes
body: <p>So I have an array of hashes:</p>
  
  <pre><code>[{"id":"30","name":"Dave"},
   {"id":"57","name":"Mike"},
   {"id":"9","name":"Kevin"},
   ...
   {"id":"1","name":"Steve"}]
  </code></pre>
  
  <p>And I want to sort it by the <code>id</code> attribute, so that it looks like this:</p>
  
  <pre><code>[{"id":"1","name":"Steve"},
   {"id":"2","name":"Walter"},
   ...
   {"id":"60","name":"Chester"}]
  </code></pre>
  
  <p>I'm assuming I use the <code>sort_by</code> method but I'm not exactly sure how to do it.</p>