SyntaxFix
Write A Post
Hire A Developer
Questions
In swift 4 you can write it smarter:
let d = [ 1 : "hello", 2 : "bye", -1 : "foo" ] d = [Int : String](uniqueKeysWithValues: d.sorted{ $0.key < $1.key })