"Hann, Brian" <[EMAIL PROTECTED]> writes:
> Is there any way I could do:
>
> [% array.sort('values.foo') %]
>
> Where "values" is the key for a hashref within the top-level hashref?
Yes.
[% mysort( array ) %]
or
[% array.mysort %]
And rename mysort to what is sorted. That would be:
[% array.by_foo %]
That's better than starting to drag in complex code in your templates
--
/ Jonas - http://jonas.liljegren.org/myself/en/index.html
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates