diff --git a/src/Security/RolesBuilder/AdminRolesBuilder.php b/src/Security/RolesBuilder/AdminRolesBuilder.php index 4d69c4f..dbe038a 100644 --- a/src/Security/RolesBuilder/AdminRolesBuilder.php +++ b/src/Security/RolesBuilder/AdminRolesBuilder.php @@ -98,6 +98,8 @@ public function getRoles(string $domain = null): array } } + uasort($adminRoles, static fn (array $a, array $b) => strcmp($a['admin_label'], $b['admin_label'])); + return $adminRoles; }