How to sort an array of structs in ColdFusion

Posted by Kip on Stack Overflow See other posts from Stack Overflow or by Kip
Published on 2010-04-16T14:45:13Z Indexed on 2010/04/16 17:53 UTC
Read the original article Hit count: 308

Filed under:
|
|

I have an array of structs in ColdFusion. I'd like to sort this array based on one of the attributes in the structs. How can I achieve this? I've found the StructSort function, but it takes a structure and I have an array.

If this is not possible purely in ColdFusion, is it possible in Java somehow (maybe using Arrays.sort(Object[], Comparator))?

© Stack Overflow or respective owner

Related posts about coldfusion

Related posts about sorting