Add GroupSorter and ColorSort.sort_groups.