compare

abstract fun compare(slot1: Int, slot2: Int): Int

Compare hit at slot1 with hit at slot2.

Return

any N < 0 if slot2's value is sorted after slot1, any N > 0 if the slot2's value is sorted before slot1 and 0 if they are equal

Parameters

slot1

first slot to compare

slot2

second slot to compare