In Kotlin, is there a more native way to compare by integer, then string?
I'm sorting a list of Pair with this:
list.sortedWith(Comparator.comparingInt { it.second }
.thenComparing { it -> it.first }
It seems a bit odd to have to specify { it -> so is there something more Kotlin-ish I should be using?