stonesoupprogramming.com
Kotlin Comparable and Comparator
Sorting objects by a certain property or field is a common task. However, as we begin to define our own classes, we need a framework that allows us to support sorting our objects. The Comparable an…