Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Sort a List in Kotlin
sorted¶
If elements in a List implements the Comparable interface,
you can call the method sorted
to return a sorted List (in nature order).
Note: Pair in Kotin does not implement the Comparable interface!!!