This would not work since that usage of 'sort' is only for an array ref, and 
the original ref was a hash ref.

-- Josh

Buddy Burden wrote:
Octavian,


[% FOREACH r = ref.keys %]
<a href="/program?id=[% r %]">[% ref.title _ " " _ ref.number %]</a>
[% END %]

But I want those links be sorted by the ref.number. Is it possible? Or I
need to create another array with the keys of the hash I want to sort in
order and then loop that array?


Doesn't this

        [% FOREACH r = ref.sort('number') %]

work?


                -- Buddy

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

!DSPAM:42b6306847537690717754!



_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to