[transfer-dev] Order / Sort on 12M Struct

2011-06-17 Thread Robert Rawlins
Hello Guys, I have a 12M relationship between to classes with the struct collection type. It seems from the docs, that when using array collections, I can specify a sort or order property. How can I do this with 'struct'? Is it possible? Thanks, Robert -- Before posting questions to the

RE: [transfer-dev] Order / Sort on 12M Struct

2011-06-17 Thread James Allen
Hi Rob, Structs in CF don't have any inherent order to them. The keys will appear in the weirdest of orders no matter what you do. At least that's how I remember it. In Railo it appears the keys are ordered alphabetically though I don't think that is true in ACF. I could be wrong, but

Re: [transfer-dev] Order / Sort on 12M Struct

2011-06-17 Thread Robert Rawlins
Hey J, Thanks for that bud. My guess would be that you're right. Bugger, what a right royal pain. Seems I can do something with 'structSort()' which will help me out. I BET this is one of those really dumb things where Adobe can't change the implementation because it would break backwards

Re: [transfer-dev] Order / Sort on 12M Struct

2011-06-17 Thread Robert Rawlins
Yeah, that's pretty much the approach I think I'll take, just seems like a hack to me. Thanks mate, sure this will work! I've been meaning to build some form of iterator for a while now anyway, so I can loop arrays, structs and lists in the same way, perhaps I'll enhance it with a sorter for

RE: [transfer-dev] Order / Sort on 12M Struct

2011-06-17 Thread James Allen
Sounds like a great helper function to me. --- James Allen E: ja...@jamesallen.name Blog: http://jamesallen.name Twitter: @CFJamesAllen (Coldfusion / Web development) Twitter: @jamesallenuk (General) Twitter: @JamesAllenVoice (Voiceover) From: transfer-dev@googlegroups.com