Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DaisukeNagata/dff1f388815f1ebe90b07ce38d717689 to your computer and use it in GitHub Desktop.
Save DaisukeNagata/dff1f388815f1ebe90b07ce38d717689 to your computer and use it in GitHub Desktop.
let id = ["111": 111, "222": 222, "333": 333, "444": 444, "555": 555]
let thisissorted = id.sorted { (l, r) -> Bool in
return l.value < r.value ? false : true
}
print(thisissorted)
@DaisukeNagata
Copy link
Author

スクリーンショット 2020-07-21 8 43 24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment