Merge "Sort user groups in Special:Listusers"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 7 May 2018 22:00:53 +0000 (22:00 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 7 May 2018 22:00:53 +0000 (22:00 +0000)
includes/specials/SpecialActiveusers.php

index 9028787..0c709af 100644 (file)
@@ -80,10 +80,12 @@ class SpecialActiveUsers extends SpecialPage {
        protected function buildForm() {
                $groups = User::getAllGroups();
 
+               $options = [];
                foreach ( $groups as $group ) {
                        $msg = htmlspecialchars( UserGroupMembership::getGroupName( $group ) );
                        $options[$msg] = $group;
                }
+               asort( $options );
 
                // Backwards-compatibility with old URLs
                $req = $this->getRequest();