title: Sort Dictionary by keys
body: <p>I want to sort a dictionary in Swift. I have a dictionary like:</p>
  
  <pre><code>"A" =&gt; Array[]
  "Z" =&gt; Array[]
  "D" =&gt; Array[]
  </code></pre>
  
  <p>etc. I want it to be like </p>
  
  <pre><code>"A" =&gt; Array[]
  "D" =&gt; Array[]
  "Z" =&gt; Array[]
  </code></pre>
  
  <p>etc.</p>
  
  <p>I have tried many solutions on SO but no one worked for me. I am using XCode6 Beta 5 and on it some are giving compiler error and some solutions are giving exceptions. So anyone who can post the working copy of dictionary sorting.</p>