remote-mediawiki: process namespaces in order

Ideally, we'd process them in numeric order since that is more logical, but we can't do that yet since this is where we find the numeric identifiers in the first place. Lexicographic order is a good compromise. Signed-off-by: Antoine Beaupré <anarcat@debian.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Antoine Beaupré committed Nov 7, 2017 at 11:07 UTC 55fefa9e94e0633cdd85f6cded42384cbeaf8a61
1 file changed +1 -1
contrib/mw-to-git/git-remote-mediawiki.perl
+1 -1
@@ -263,7 +263,7 @@ sub get_mw_tracked_categories {
263
264 sub get_mw_tracked_namespaces {
265 my $pages = shift;
266 - foreach my $local_namespace (@tracked_namespaces) {
266 + foreach my $local_namespace (sort @tracked_namespaces) {
267 my $namespace_id;
268 if ($local_namespace eq "(Main)") {
269 $namespace_id = 0;