diff --git a/Neos.Neos/Classes/Controller/Module/Administration/UsersController.php b/Neos.Neos/Classes/Controller/Module/Administration/UsersController.php index c91ceee1e55..4ce6f5e5c9e 100644 --- a/Neos.Neos/Classes/Controller/Module/Administration/UsersController.php +++ b/Neos.Neos/Classes/Controller/Module/Administration/UsersController.php @@ -553,7 +553,7 @@ protected function getAllowedRoles(): array $roles = $this->userService->currentUserIsAdministrator() ? $this->policyService->getRoles() : $currentUserRoles; usort($roles, static function (Role $a, Role $b) { - return strcmp($a->getName(), $b->getName()); + return strcmp($a->getLabel(), $b->getLabel()); }); return $roles;