That sounds like sufficiently complex logic that I'd do it in Perl before calling the template.
On Wed, Mar 2, 2011 at 2:14 PM, Summer <[email protected]> wrote: > Hey All, > > I have some deep hashes and I am trying to sort them and I can't seem to do > it. > Here is an example. > > %popularshows > --> %horror > ------> %count > %1 > name => 'scary movie 3' > cost => '10' > %2 > name => 'Knife Attack' > cost => '9' > %3 > name => 'Frankenstein' > cost => '10' > > > So I am trying: > > FOREACH val IN popularshows.horror.count.keys.sort('name') > > and variations on that, but I can't seem to sort them by their alphabetical > names. > > Any ideas? > > > > > _______________________________________________ > templates mailing list > [email protected] > http://mail.template-toolkit.org/mailman/listinfo/templates > > -- Check out my LEGO blog at http://www.brickpile.com/ View my photos at http://flickr.com/photos/billward/ Follow me at http://twitter.com/williamward
_______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
