sort user groups by name AND id