I am trying to sort a hash using the sort method and getting inconsistent
results.
The syntax I have is:
[% FOREACH bldgno = t_data.sort %]
[% FOREACH roomno = t_data.$bldgno.sort %]
<B>[% bldgno %] [% roomno %]</B>
[% t_data.$bldgno.$roomno.title %] ([% t_data.$bldgno.$roomno.csm %])
[% END %]
[% END %]
t_data is a hash that has bldgs as keys, and a hash of rooms as the value.
The has of rooms contains keys of title and CSM.
I want the hash when it prints to sort by building names and room names.
Katie Kee
Pacific Northwest National Labs
Software Developer
(509) 372-4560