January 2018
Intermediate to advanced
434 pages
14h 1m
English
In the last recipe, we saw how to sort a list with a specified comparator. We provide the comparator, and it sorts it accordingly. Interestingly, Kotlin also provides a method to sort items of a list in descending order. In this recipe, we will see how to sort a collection of primitive objects as well as custom objects in descending order. So let's get started!
Read now
Unlock full access