2 # Sort::Naturally-powered title_natural sort order for IkiWiki
3 package IkiWiki
::Plugin
::sortnaturally
;
9 hook
(type
=> "getsetup", id
=> "sortnaturally", call
=> \
&getsetup
);
10 hook
(type
=> "checkconfig", id
=> "sortnaturally", call
=> \
&checkconfig
);
22 eval q{use Sort::Naturally};
26 package IkiWiki
::SortSpec
;
28 sub cmp_title_natural
{
29 Sort
::Naturally
::ncmp
(IkiWiki
::pagetitle
(IkiWiki
::basename
($a)),
30 IkiWiki
::pagetitle
(IkiWiki
::basename
($b)))