compareTo

open operator override fun compareTo(other: Message): Int

Compares this object to the specified object to determine their relative order by created date in descending order.

Return

a negative integer if this instance is less than another; a positive integer if this instance is greater than another; 0 if this instance has the same order as another

Parameters

other

the object to compare to this instance.