Followup r104318, sort the options in the limit dropdown
authorJohn Du Hart <johnduhart@users.mediawiki.org>
Sun, 27 Nov 2011 17:31:14 +0000 (17:31 +0000)
committerJohn Du Hart <johnduhart@users.mediawiki.org>
Sun, 27 Nov 2011 17:31:14 +0000 (17:31 +0000)
includes/specials/SpecialBlockList.php

index 09af45c..719a338 100644 (file)
@@ -470,9 +470,10 @@ class HTMLBlockedUsersItemSelect extends HTMLSelectField {
 
                if ( !in_array( $value, $this->mParams['options'] ) ) {
                        $this->mParams['options'][ $this->mParent->getLanguage()->formatNum( $value ) ] = intval($value);
+                       asort( $this->mParams['options'] );
                }
 
                return true;
        }
 
-}
\ No newline at end of file
+}