aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Setup.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-02-12 06:35:52 -0500
committerJoey Hess <joey@gnu.kitenet.net>2010-02-12 06:35:52 -0500
commit34fff64e7b56f4f8cd99430f9f927d2a5d1e3619 (patch)
tree592c5899322993b982ff7fa9a4331b6ce84599a2 /IkiWiki/Setup.pm
parent20ba12802b3897bf48d8a7704a57e9cede2466bd (diff)
downloadikiwiki-34fff64e7b56f4f8cd99430f9f927d2a5d1e3619.tar
ikiwiki-34fff64e7b56f4f8cd99430f9f927d2a5d1e3619.tar.gz
setup file ordering
Diffstat (limited to 'IkiWiki/Setup.pm')
-rw-r--r--IkiWiki/Setup.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki/Setup.pm b/IkiWiki/Setup.pm
index 7a7683fab..a3fd5ce66 100644
--- a/IkiWiki/Setup.pm
+++ b/IkiWiki/Setup.pm
@@ -121,9 +121,11 @@ sub getsetup () {
$config{syslog}=$syslog;
return map { sort { $a->[0] cmp $b->[0] } @{$sections{$_}} }
- sort { # core first, then alphabetical
+ sort { # core first, other last, otherwise alphabetical
($b eq "core") <=> ($a eq "core")
||
+ ($a eq "other") <=> ($b eq "other")
+ ||
$a cmp $b
} keys %sections;
}