If I have
r["bob"]=45;
r["jane"]=2;
r["fred"]=4;

How can I output
45 Bob
4 Fred
2 Jane
i.e. sort by value (in perl "foreach $name (sort {$r{$b} <=> $r{$a} } keys
%r)" does the same thing)

Regards,

Thomas Chiverton,
Intranet Architect and Desktop Analyst
Office: 01565 757 909
As a GUI, reality in useless...


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to