title: Reorder a JSON collection
body: <p>I have a JSON array fetch from my server which looks like :</p>
  
  <pre><code>     [ {name: "Web Design", id: "27", month_n: "1", data: "68.00"},
       {name: "Web Design", id: "27", month_n: "2", data: "56.00"} ,
       {name: "Homework", id: "4", month_n: "2", data: "15.00"} ,
       {name: "Gaming", id: "12", month_n: "2", data: "5.00"} ]
  </code></pre>
  
  <p>On the client side, I want to reorder this to have something similar to : </p>
  
  <pre><code> [{name: "Web Design", data:[68.00,56.00]}, {name:"Homework", data:[0,15]} and so on...
  </code></pre>
  
  <p>Where the "data" value is grouped by the "id" number and the month number (by default 0 if there's no month that match).</p>
  
  <p>What's the best way ? I tried it the pure JavaScript way but I'm getting a hard time ! I have also heard It is easier with underscore JS. But don't know where to start. </p>
  
  <p>Will someone please enlighten me ?</p>