sub import {
hook(type => "getsetup", id => "sortnaturally", call => \&getsetup);
+ hook(type => "checkconfig", id => "sortnaturally", call => \&checkconfig);
}
sub getsetup {
return
plugin => {
safe => 1,
- rebuild => 1,
+ rebuild => undef,
},
}
IkiWiki::pagetitle(IkiWiki::basename($b)))
}
+sub cmp_path_natural {
+ Sort::Naturally::ncmp(IkiWiki::pagetitle($a),
+ IkiWiki::pagetitle($b))
+}
+
1;