aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2010-04-03 13:48:30 +0100
committerSimon McVittie <smcv@debian.org>2010-04-03 14:28:21 +0100
commita875ee8be702bd4575e009dc652015c1157c7c2e (patch)
tree91aa52cda28325f2791cb4a234f83fee4a30a259 /IkiWiki.pm
parentb86276ffed7ee001b35cd610e5d56e5afb4088cf (diff)
downloadikiwiki-a875ee8be702bd4575e009dc652015c1157c7c2e.tar
ikiwiki-a875ee8be702bd4575e009dc652015c1157c7c2e.tar.gz
Split out sortnaturally into a plugin
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm11
1 files changed, 0 insertions, 11 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index a89c14058..8f36f5818 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -2423,15 +2423,4 @@ sub cmp_title {
sub cmp_mtime { $IkiWiki::pagemtime{$_[1]} <=> $IkiWiki::pagemtime{$_[0]} }
sub cmp_age { $IkiWiki::pagectime{$_[1]} <=> $IkiWiki::pagectime{$_[0]} }
-sub check_cmp_title_natural {
- eval q{use Sort::Naturally};
- if ($@) {
- error(gettext("Sort::Naturally needed for title_natural sort"));
- }
-}
-sub cmp_title_natural {
- Sort::Naturally::ncmp(IkiWiki::pagetitle(IkiWiki::basename($_[0])),
- IkiWiki::pagetitle(IkiWiki::basename($_[1])))
-}
-
1