compareBy

fun compareBy(compare: (T, T) -> Boolean)

Sets the comparator


val compareBy: (T, T) -> Boolean

Defines the method how to check if two elements are equal