I don't think this fits his needs, your output would be sorted on the key,
not value.  He is not sorting based on position.  I concur that you should
not expect a structure to be in any particular order.


> I'm looking:
> 1 Auto parts
> 5 Manufacturing
> 3 Sales


-----Original Message-----
From: Barney Boisvert
Sent: Monday, June 28, 2004 4:59 PM
To: CF-Talk
Subject: RE: Ordering Structure


Since CFLOOP COLLECTION="#myStruct#" ITEM="key" is identical in function to
CFLOOP LIST="#structKeyList(myStruct)#" INDEX="key", use the latter format
in your loop, and tack on a listSort() function around the structKeyList()
function to sort the keys in whatever order you choose (textnocase in this
example).
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to