order groups and users to close #593