Added Sorting after Grouping