title: SWIFT - Cannot assign value of type '[(String, [String : Any])]' to type '[String : [String : Any]]'
body: <p>How do I get rid of the "()" on the first value so I can assign to the next variable?</p>
  
  <p>This is how I initialize my dictionary:</p>
  
  <pre><code>var imagedata: [String: [String: Any]] = [:]
  </code></pre>
  
  <p>I load data into the dictionary and then I sort it</p>
  
  <pre><code>imagedata = Array(imagedata).sort({ $0.0 &lt; $1.0 })
  </code></pre>
  
  <p>but it gives me a value of type '[(String, [String : Any])]' instead of '[String : [String : Any]]' so it can't be assigned.</p>