Created
July 20, 2020 23:42
-
-
Save DaisukeNagata/dff1f388815f1ebe90b07ce38d717689 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Author
DaisukeNagata
commented
Jul 20, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment