title: Preserve order of dictionary items as declared in Swift?
body: <p>When creating a key/value dictionary, it is returned as randomly sorted. I was hoping that they would be in the same order as it was created.</p>
  
  <p>For example, see this code:</p>
  
  <pre><code>var dict = [
      "kg": 1,
      "g": 2,
      "mg": 3,
      "lb": 4,
      "oz": 5,
      "t": 6
  ]
  
  println(dict)
  </code></pre>
  
  <p>This returns the following:</p>
  
  <pre><code>[kg: 1, oz: 5, g: 2, mg: 3, lb: 4, t: 6]
  </code></pre>
  
  <p>How do I preserve the order in which the dictionary was declared?</p>