Untitled.cfm
# lucee
j
Untitled.cfm
i can't save this trycf.com for some reason but help me sanity check something. why does the first struct get its keys sorted properly while the second one gets a random order? (lucee 5 and 6 engine.)
oh, it's the element's value that it sorts on, not the key.
i guess i need to sort the key array
yeah:
dump(sctB.keyArray().sort("textNoCase"));
g
This happns to me all the time... I spend a lot of time trying to get something working....I write really long post - with all my code, explain what I am expecting it to do and what is actually happening.. and while typing the last couple of lines - the solution magically appears... OR - it appears after I hit SUBMIT - but before I have released the mouse button!
j
have you heard of rubber duck debugging? turns out there's a name for the phenomenon. i only learned of it recently. https://en.wikipedia.org/wiki/Rubber_duck_debugging
👍🏼 1