Hi,
I have a hash in my CGI script, e.g. $info{$filename} = $filepath; 
(hash contents e.g. 
KEY: one.html,   VALUE: /REPORTS
KEY: two.html,   VALUE: /REPORTS
KEY: three.html, VALUE: /REPORTS
KEY: four.html,   VALUE: /REPORTS ).

I'm passing the $info hash to my tt2 script and in this script I have ...

[% FOREACH project = info %]
        <A HREF="[% project.value %]/[% project.key %]">[% project.key %]
[% END %]

At present the output is printed in this order .....
four.html
one.html
three.html
two.html

How can I ensure that this list is printed in number order i.e.
one.html
two.html
three.html
four.html

Any help greatly appreciated.
Richard.




**********************************************************************
The information contained in this email is confidential and is intended for the 
recipient only. If you have received it in error, please notify us immediately by 
reply email and then delete it from your system. Please do not copy it or use it for 
any purposes, or disclose its contents to any other person or store or copy this 
information in any medium. The views contained in this email are those of the author 
and not necessarily those of Lorien plc.

Thank you for your co-operation.
**********************************************************************


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to