Sort groups after checking new groups