X-Git-Url: https://git.exim.org/users/heiko/exim.git/blobdiff_plain/fcb4c2551d9188d885f7ba045b189a657ec56f0c..04403ab0b5778126d98d5c9dc8064405688129e0:/doc/doc-scripts/f2wiki diff --git a/doc/doc-scripts/f2wiki b/doc/doc-scripts/f2wiki index 253f9d834..8576359aa 100644 --- a/doc/doc-scripts/f2wiki +++ b/doc/doc-scripts/f2wiki @@ -2,8 +2,6 @@ # # Script to convert Exim FAQ into wiki markup - moin flavour # -# $Cambridge: exim/doc/doc-scripts/f2wiki,v 1.1 2004/11/12 14:48:08 nm4 Exp $ -# use strict; use integer; use bytes; @@ -276,7 +274,9 @@ sub build_tocs ($) { my $meta = shift; my $tfh = IO::File->new('FAQ', 'w'); - foreach my $sect (values %{$meta->{sections}}) { + my @sections = sort { $a->{num} <=> $b->{num} } + values %{$meta->{sections}}; + foreach my $sect (@sections) { my $fh = IO::File->new($sect->{wikifile}, 'w'); $fh->print(join("\n", '##language:en',