sorting existing hack on groups, addresses #54