compare

open fun compare(o1: T2, o2: T2): Int(source)

Similar to java.util.Comparator#compare(Object, Object), should compare two and return how they should be ordered.