swift loop dictionary alphabetically index code example
Example: swift order dictionary by key
let sortedKeys = Array(dictionary.keys).sort(<) // ["A", "D", "Z"]
let sortedKeys = Array(dictionary.keys).sort(<) // ["A", "D", "Z"]