summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/meta.pm11
1 files changed, 6 insertions, 5 deletions
diff --git a/IkiWiki/Plugin/meta.pm b/IkiWiki/Plugin/meta.pm
index a470041c9..e8cc1e392 100644
--- a/IkiWiki/Plugin/meta.pm
+++ b/IkiWiki/Plugin/meta.pm
@@ -13,7 +13,6 @@ sub import {
hook(type => "needsbuild", id => "meta", call => \&needsbuild);
hook(type => "preprocess", id => "meta", call => \&preprocess, scan => 1);
hook(type => "pagetemplate", id => "meta", call => \&pagetemplate);
- hook(type => "sort", id => "meta_title", call => \&sort_meta_title);
}
sub getsetup () {
@@ -299,10 +298,6 @@ sub titlesort {
return pagetitle(IkiWiki::basename($_[0]));
}
-sub sort_meta_title {
- return titlesort($_[0]) cmp titlesort($_[1]);
-}
-
sub match {
my $field=shift;
my $page=shift;
@@ -353,4 +348,10 @@ sub match_copyright ($$;@) {
IkiWiki::Plugin::meta::match("copyright", @_);
}
+sub cmp_meta_title {
+ IkiWiki::Plugin::meta::titlesort($_[0])
+ cmp
+ IkiWiki::Plugin::meta::titlesort($_[1])
+}
+
1