> Of course, coldfusion has to loop over the keys a certain way. It does it
alphabetically,
> but that is just the way it is done. If they do it some other way in MX,
you can't complain
> because structures are NOT oredered.
>

Pascal.  why does Coldfusion have to loop over the keys in a certain way?
The easiest way would be to display them in the order that they are entered
into the structure, not going out of its way to order them alphabetically,
which, incidentally, is exactly what its doing.

I just had a play with Mark's code and for whatever reason, whether you
return the key list, cfdump the struct variable or loop through the
collection, the list of keys always returns in alphabetic order.

Mark,
It shouldn't really matter what order the keys are returned in, because
that's only a reference to the contents the key is storing.  If the keys
("D, C, B, A") are actually the content then I suspect you may be getting
the wrong end of the stick with structures and, as Pascal says, you probably
should be using arrays.

Hope that helps

Regards

Stephen


______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to