This is a continuation from a previous question in regards to grouping. I have a file of structure below and what I want to do rather than simply isolating one id I want to loop through the entire array (imagine 1000+ ids) and create separate arrays for each which I can then do further work on. So in the example below id1 would be group together in one array and id2 would be grouped together in another array. Once I had separated each ID into a separate array I would then continue to filter each further based on a set of conditions.
[{col1: 'id1', col2: '123', col3: '12/01/12'},
{col1: 'id1', col2: '100', col3: '12/01/12'},
{col1: 'id2', col2: '-100', col3: '12/01/12'},
{col1: 'id2', col2: '123', col3: '13/01/12'}]
.
Any advice on the best way to break the array down and then how to call individual ID arrays would be much appreciated.
Thanks in advance