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

Reply via email to