Don't do complicated loops in the template, move that stuff out in the a custom plugin. It will be easier to work with in direct Perl code that try and work around some of the syntax short-comings in Template Toolkit.
TT is intended for presentation not for manipulating and sorting complicated data structures. Move that stuff of the out of the template all together when you can.
In reply to Re: Reverse sort order in FOREACH in Template Toolkit
by Herkum
in thread Reverse sort order in FOREACH in Template Toolkit
by punch_card_don
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |