finish documenting the sort method
authorTony Cook <tony@develop-help.com>
Sun, 12 Apr 2020 03:29:38 +0000 (13:29 +1000)
committerTony Cook <tony@develop-help.com>
Sun, 12 Apr 2020 03:29:38 +0000 (13:29 +1000)
site/cgi-bin/modules/Squirrel/Template/Expr/WrapArray.pm

index b41a4c0eac94e3549fb52a754e64476eb02af786..620fd1361e72e87e86bb33d364f75dc772da1c6c 100644 (file)
@@ -4,7 +4,7 @@ use base qw(Squirrel::Template::Expr::WrapBase);
 use Scalar::Util ();
 use List::Util ();
 
-our $VERSION = "1.011";
+our $VERSION = "1.012";
 
 my $list_make_key = sub {
   my ($item, $field) = @_;
@@ -378,7 +378,8 @@ The elements sorted as objects calling C<fieldname>.
 
 =item sort(block)
 
-The elem
+The elements sorted as objects, calling block with two arguments to
+compare, returning -1 is a < b, 0 if a == b, +1 if a > b.
 
 =item reversed