diff --git a/src/lib/Persistence/Legacy/User/Role/Gateway/DoctrineDatabase.php b/src/lib/Persistence/Legacy/User/Role/Gateway/DoctrineDatabase.php index 652aa02ab5..a6d535e3f3 100644 --- a/src/lib/Persistence/Legacy/User/Role/Gateway/DoctrineDatabase.php +++ b/src/lib/Persistence/Legacy/User/Role/Gateway/DoctrineDatabase.php @@ -157,7 +157,8 @@ public function loadRole(int $roleId, int $status = Role::STATUS_DEFINED): array $this->buildRoleDraftQueryConstraint($status, $query) ) ->orderBy('p.id', 'ASC') - ->addOrderBy('l.identifier', 'ASC'); + ->addOrderBy('l.identifier', 'ASC') + ->addOrderBy('v.value', 'ASC'); return $query->execute()->fetchAllAssociative(); } @@ -182,7 +183,8 @@ public function loadRoleByIdentifier( $this->buildRoleDraftQueryConstraint($status, $query) ) ->orderBy('p.id', 'ASC') - ->addOrderBy('l.identifier', 'ASC'); + ->addOrderBy('l.identifier', 'ASC') + ->addOrderBy('v.value', 'ASC'); return $query->execute()->fetchAllAssociative(); }