From 578bcde7d92fe90a28691eff3d5469aee879337f Mon Sep 17 00:00:00 2001 From: Bryan Davis Date: Mon, 5 Oct 2015 22:12:32 -0600 Subject: [PATCH] Sort MWNamespace::getValidNamespaces list numerically Bug: T109137 Change-Id: Ic6b7635884628c8c3cf1cdfb01dad49bab292d6c --- includes/MWNamespace.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/MWNamespace.php b/includes/MWNamespace.php index 8ca205ab42..0dd709f1e4 100644 --- a/includes/MWNamespace.php +++ b/includes/MWNamespace.php @@ -271,6 +271,8 @@ class MWNamespace { $mValidNamespaces[] = $ns; } } + // T109137: sort numerically + sort( $mValidNamespaces, SORT_NUMERIC ); } return $mValidNamespaces; -- 2.20.1