[Templates] Sorting numerically?

Christopher Taranto christopher@tokpela.com
Thu, 10 Aug 2000 12:18:19 -0700


Hi,

Is there a way to sort through a hash using a numerical sort instead of the 
default ASCII?

I've searched through the docs and Dejanews but have not found anything for 
numeric sorting

        [% FOREACH order_number = order_record.keys.sort  {  $a <=> $b } %]

I also looked at the source but I wasnt clear on where the sorting is 
actually taking place.

I am using Template Toolkit 1.07

Thanks!