MediaWiki\User\UserGroupManager::listAllGroups() output has no sorting order, rendering a disorganised list of user group keys. Would it be possible to display these ordered by their respective internal key / label instead?
See also T172687: Special:UserRights should order list of groups alphabetically by label .