Merge "Sort MWNamespace::getValidNamespaces list numerically"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 6 Oct 2015 16:20:57 +0000 (16:20 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 6 Oct 2015 16:20:57 +0000 (16:20 +0000)
includes/MWNamespace.php

index 8ca205a..0dd709f 100644 (file)
@@ -271,6 +271,8 @@ class MWNamespace {
                                        $mValidNamespaces[] = $ns;
                                }
                        }
+                       // T109137: sort numerically
+                       sort( $mValidNamespaces, SORT_NUMERIC );
                }
 
                return $mValidNamespaces;