Similar to Color Sorting Group Set