]> sipb.mit.edu Git - ikiwiki.git/commitdiff
update fieldsort plugin to be compatible with the latest version of my branch
authorhttp://smcv.pseudorandom.co.uk/ <http://smcv.pseudorandom.co.uk/@web>
Sun, 4 Apr 2010 00:27:20 +0000 (00:27 +0000)
committerJoey Hess <joey@finch.kitenet.net>
Sun, 4 Apr 2010 00:27:20 +0000 (00:27 +0000)
doc/plugins/contrib/field/discussion.mdwn

index 7e94a402994ab123e762d88cc8a7fc3f97665f53..ad17f87e6472b1eb70938ed2f42b8a4a420ace86 100644 (file)
@@ -68,15 +68,13 @@ I think it should just be part of `field` rather than a separate plugin.
                        },
        }
 
-       package IkiWiki::PageSpec;
+       package IkiWiki::SortSpec;
 
-       sub check_cmp_field {
+       sub cmp_field {
                if (!length $_[0]) {
                        error("sort=field requires a parameter");
                }
-       }
 
-       sub cmp_field {
                my $left = IkiWiki::Plugin::field::field_get_value($_[2], $_[0]);
                my $right = IkiWiki::Plugin::field::field_get_value($_[2], $_[1]);