>   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.
> 
Nor should a structure be ordered. In CFMX, a structure is a hash table,
so it is meant for O(1) value lookups based on known keys. If you need
something that functions similar to a structure i.e. implements the Map
interface, but need the values to be stored in a specific order then you
need a class that implements the SortedMap interface; TreeMap is one
such class and provides a constructor to turning Maps into TreeMaps.

-Matt

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

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

Reply via email to