Sort group names case insensitively.
Hide the type selector if there's no decision to be made.
Cleanup.