Dunno if this made it to the list:

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)

I've checked up on devex, and there doesnt seem to be a tag to do it either.
Does anyone have such a beast ?

I'm off to write <cf_SortByValue> and <cf_SortByKey> in the mean time :-)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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