Item group dividers based on field in array?


I have an array with three fields; name, id and category; the array is already sorted based on category and I would like to make an item-group with dividers based on the category of each element. Is there a simple way to do this?