]> sipb.mit.edu Git - ikiwiki.git/blobdiff - t/pagespec_match_list.t
Reimplement extensible sorting mechanisms, in the same way as pagespecs
[ikiwiki.git] / t / pagespec_match_list.t
index 309961f1c52f78e57dbd5000b65257feda408443..743ae4637062d57b326e0d75e6486e2388549d9f 100755 (executable)
@@ -9,7 +9,11 @@ BEGIN { use_ok("IkiWiki"); }
 $config{srcdir}=$config{destdir}="/dev/null";
 IkiWiki::checkconfig();
 
-hook(type => "sort", id => "path", call => sub { $_[0] cmp $_[1] });
+{
+       package IkiWiki::PageSpec;
+
+       sub cmp_path { $_[0] cmp $_[1] }
+}
 
 %pagesources=(
        foo => "foo.mdwn",