Libraries anvil lang object compareTo

int compareTo(other)
Compares this object and 'other'. Returns -1 if this < other, 0 if this == other, 1 if this > other.