]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/sortnaturally.pm
Merge branch 'file_pruned_revamp'
[git.ikiwiki.info.git] / IkiWiki / Plugin / sortnaturally.pm
index 0023f31f942b124cd3fc251fbbf55c7e34761f4f..62e42767c99a48170ddb58c1473b8b49131ad24b 100644 (file)
@@ -13,7 +13,7 @@ sub getsetup {
        return
                plugin => {
                        safe => 1,
-                       rebuild => 1,
+                       rebuild => undef,
                },
 }
 
@@ -22,11 +22,11 @@ sub checkconfig () {
        error $@ if $@;
 }
 
-package IkiWiki::PageSpec;
+package IkiWiki::SortSpec;
 
 sub cmp_title_natural {
-       Sort::Naturally::ncmp(IkiWiki::pagetitle(IkiWiki::basename($_[0])),
-               IkiWiki::pagetitle(IkiWiki::basename($_[1])))
+       Sort::Naturally::ncmp(IkiWiki::pagetitle(IkiWiki::basename($a)),
+               IkiWiki::pagetitle(IkiWiki::basename($b)))
 }
 
 1;