X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fuser%2FUserGroupMembership.php;h=acd697081cf7dd1b1f0ac2488fe4413727059cea;hb=d159839c392dcd1dc1373b774136f5f9746e51f8;hp=89cdc5f1946990fef888f0dee5468953b7008513;hpb=97402532d48de203925a850a4afa2d8f43e3dd9f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/user/UserGroupMembership.php b/includes/user/UserGroupMembership.php index 89cdc5f194..acd697081c 100644 --- a/includes/user/UserGroupMembership.php +++ b/includes/user/UserGroupMembership.php @@ -46,7 +46,7 @@ class UserGroupMembership { /** * @param int $userId The ID of the user who belongs to the group - * @param string $group The internal group name + * @param string|null $group The internal group name * @param string|null $expiry Timestamp of expiry in TS_MW format, or null if no expiry */ public function __construct( $userId = 0, $group = null, $expiry = null ) { @@ -323,6 +323,7 @@ class UserGroupMembership { $ugms[$ugm->group] = $ugm; } } + ksort( $ugms ); return $ugms; }