create array with form data which groups and sorts data
<p>I have some input fields than I want as an array so that I can view them in a table on my page. I have been able to create an array using <a href="http://api.jquery.com/serializeArray/" rel="nofollow">.serializeArray()</a></p>

<p>In <a href="http://jsfiddle.net/aaronk85/VNSam/3/" rel="nofollow">this fiddle</a> I have been able to output my array however I want the data to appear as it does in the table I have hard coded at the bottom of the fiddle, where it groups all the instances of Tom and Jerry into one row per id.  Accumalating all sales values for that id etc.  And I want to sort it by the total sale price column.  I am aware of server side techniques to do this however in this case I am looking for a jquery solution.  What is the best way to acheive this?</p>
