compareBy

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

Sets the comparator


var compareBy: (t1: T, t2: T) -> Boolean

Defines the method how to check if two elements are equal