Created
February 25, 2026 06:23
-
-
Save trycf/bd63f62576a1586f6013214d19003384 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfscript> | |
| myStruct=StructNew(); | |
| myStruct={c="Berlin", a="London",b="Paris",d="New York",e="Dublin"}; | |
| mySort=StructSort(myStruct,"text","asc"); //Sorts the top level keys in the struct in ascending order | |
| WriteOutput(serializeJSON(myStruct)); | |
| </cfscript> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment