title: Ruby on Rails - Hash of Arrays, group by and sum by column name
body: <p>I have the following array of hashes:</p>
  
  <blockquote>
    <p>[{"idx"=>"1234", "account"=>"abde", "money"=>"4.00",
    "order"=>"00001"}, {"idx"=>"1235", "account"=>"abde", "money"=>"2.00",
    "order"=>"00001"}, {"idx"=>"1235", "account"=>"abde", "money"=>"3.00",
    "order"=>"00002"}]</p>
  </blockquote>
  
  <p>Like how sql does it, I'd like to take that array of hashes and group it by the order number so that it results like this where order 00001 is grouped and it sum the money to 6.00:</p>
  
  <blockquote>
    <p>[{"idx"=>"1234", "account"=>"abde", "money"=>"6.00",
    "order"=>"00001"}, {"idx"=>"1234", "account"=>"abde", "money"=>"3.00",
    "order"=>"00002"}]</p>
  </blockquote>
  
  <p>Thanks.</p>