Do you mean that the values of the structure are integers, or the keys of 
the structure are integers?
  If the latter, then StructSort, as someone else had mentioned, would 
probably do it.  It will return an array.  Then you'll have to loop over 
the array, sending the current array value as the key to the structure in 
your processing code.

  However, that is technically not ordering the structure; merely 
processing elements inside the structure in a specific order.  By there 
very nature structures are unordered.  In most cases, I doubt it makes a 
difference.

  I might ask the question if you should you be using an array instead of a 
structure?


At 04:26 PM 1/6/2003 -0500, you wrote:

>I want to loop over a structure that I have but in a specific order. The
>values of my structure are integers so I want to start with the highest
>number first and go from there decending.
>
>Anybody have a good UDF for this?
>
>Thanks,
>Jon
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to