Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val sorted = set.sortedWith(compareBy<GraphItem>
- { it::class.java.simpleName }.reversed().thenBy {
- when (it) {
- is GraphItem.Node -> it
- is GraphItem.Edge -> it
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement