Chalk this one up to “I never thought I’d need this, but glad it’s there!”

I’m currently working on a little project where I wanted to have an honest-to-goodness struct of structs, but to have the structure retain the order of the child structures as they are created.  Of course, ColdFusion structures do not have any particular ordering, so forget that route.

Fortunately, you can create a Java LinkedHashMap to accomplish this, and there’s very little impact to the normal course of development in working with structures.  In fact, I think the only real difference is case sensitivity.

Anyway, here’s where I found this nugget.  Enjoy :)