Swift - sort dictionary descending by key
<p>I am trying to sort a dictionary by keys (descending), and here is the code I have:</p>

<pre><code>var codes = [String:String]()

codes["2"] = "Bitten by turtle"
codes["6"] = "Burn due to water-skis on fire"
codes["12"] = "Walked into lamppost"
codes["24"] = "Bizarre personal appearance"
codes["100"] = "Fall in (into) bucket of water causing drowning and submersion"


let unsortedCodeKeys = Array(codes.keys)
print(unsortedCodeKeys)

let sortedCodeKeys = unsortedCodeKeys.sort(&lt;)
</code></pre>

<p>However, when you print the sortedCodeKeys, it's still not descending order. How come? How can I sort the keys by descending value? (All the keys are integers).</p>