I have pairs of list and i want to sort by Pair.second if Pair.first is not null
my list
val list = listOf<Pair<Int?, Int>>(
Pair(1, 199),
Pair(null, 180),
Pair(10, 210),
Pair(null, 178)
)
Desired result
Pair(1, 199),
Pair(10, 210),
Pair(null, 178),
Pair(null, 180)