> want it in, and add the data to a structure, I am finding it
> does not stay in that order. A few records from the query:
>
> 262 Alabama
> 211 Alaska
> 212 Arizona
> 213 Arkansas
> 214 California
>
> When I loop over the collection and display it, it seems to
> sort on the numeric id, instead of the order I inserted the
> records into the structure. Consequentially, Alabama ends up
> last. I do not recall running into this before.
In general, I would recommend that you not use structures to contain ordered
data. The behavior of structures with regard to ordering has changed several
times since they've been introduced to CF. If you want ordered data, use an
array.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

