Function compareScrRefs

  • Compares two Scripture references canonically.

    Parameters

    • scrRef1: SerializedVerseRef

      The first Scripture reference to compare.

    • scrRef2: SerializedVerseRef

      The second Scripture reference to compare.

    Returns number

    A number indicating the result of the comparison: - Negative value if scrRef1 precedes scrRef2 in sorting order. - Zero if scrRef1 and scrRef2 are equivalent in sorting order. - Positive value if scrRef1 follows scrRef2 in sorting order.