sort subgroups alphabetically