From: Frank Lichtenheld Date: Mon, 19 Nov 2007 17:40:10 +0000 (+0100) Subject: create_index_pages: Sort sections alphabetically by name X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=fc66281d844d9cd1b4563f46799a6496c63b1cca;p=deb%2Fpackages.git create_index_pages: Sort sections alphabetically by name When did I broke that? --- diff --git a/bin/create_index_pages b/bin/create_index_pages index 6d08d60..0cc0bf8 100755 --- a/bin/create_index_pages +++ b/bin/create_index_pages @@ -63,7 +63,7 @@ foreach my $s (@SUITES) { my %content = ( subsections => [], suite => $s, lang => $lang, charset => $charset, cat => $cat, used_langs => \@LANGUAGES, suites => \@SUITES ); - foreach my $ssec ((keys %{$subsections->{$s}}, 'virtual')) { + foreach my $ssec (sort (keys %{$subsections->{$s}}, 'virtual')) { next if $ssec eq '-'; if ($sections_descs{$ssec}) { push @{$content{subsections}}, {