Group Your Data - Take Two
Following up my previous post on Grouping Your Data, here is a more concrete example. I wrote two simple functions for grouping the data and then generating the HTML.
- sortedGroupBy - It is a light wrapper around Underscore's groupby function
- groupByHtml - It uses a simple function to generate the HTML given the resulting data from the first function.