2 # Sort::Naturally-powered title_natural sort order for IkiWiki
3 package IkiWiki::Plugin::sortnaturally;
9 hook(type => "getsetup", id => "sortnaturally", call => \&getsetup);
21 eval q{use Sort::Naturally};
25 package IkiWiki::SortSpec;
27 sub cmp_title_natural {
28 Sort::Naturally::ncmp(IkiWiki::pagetitle(IkiWiki::basename($_[0])),
29 IkiWiki::pagetitle(IkiWiki::basename($_[1])))