Implement Sorting for Grouped Collections