setup file ordering
[ikiwiki.git] / IkiWiki / Setup.pm
index 7a7683fab555c552ab59e0b55951d5f6a6bd3192..a3fd5ce66466f45e1480776e31be39ece90f592b 100644 (file)
@@ -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;
 }