in reply to Re^3: HTML::Template::Compiled - TMPL_EACH
in thread HTML::Template::Compiled - TMPL_EACH

or how about
<%each hash sort=-num %>
less typing =)

edit: on the other hand, an attribute 'reverse' could also be used for tmpl_loop

Replies are listed 'Best First'.
Re^5: HTML::Template::Compiled - TMPL_EACH
by mmanso (Initiate) on Sep 06, 2008 at 16:03 UTC
    In my oppinion when you use TMPL_LOOP you already took care of sorting when you build the array to feed the TMPL_LOOP.

    Any of both solutions looks fine to me.