compareTo

operator fun compareTo(to: VerseReference): Int

Compares this VerseReference to another VerseReference for order.

The comparison is performed in the following order:

  1. Book name

  2. Chapter index

  3. Verse index

Return

A negative integer if this VerseReference is less than to, zero if they are equal, or a positive integer if this VerseReference is greater than to.

Parameters

to

The other VerseReference to compare to.