Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@daisukenagata daisukenagata commented Jul 20, 2020

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

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