X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fuser%2FUserGroupMembership.php;h=acd697081cf7dd1b1f0ac2488fe4413727059cea;hb=6bc04b3b4c48121eddc4bcd7e2f73d3b7d8b10a8;hp=89cdc5f1946990fef888f0dee5468953b7008513;hpb=708f51c2c60b970549f463776faa38318fd11d21;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; }