compare

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

Similar to compare, should compare two and return how they should be ordered.

Return

a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

Parameters

o1

The first object to compare.

o2

The second object to compare.