compareTo

open operator override fun compareTo(other: CodePoint): Int(source)

Compares this code point with the specified other code point for order.

Returns zero if this code point is equal to the other code point, a negative number if it's less than other, or a positive number if it's greater than other.

Code points are compared by their integer code values, so the natural ordering corresponds to the Unicode code point order.

Since Kotlin

2.5

Return

A negative integer, zero, or a positive integer as this code point is less than, equal to, or greater than the specified other code point.

Parameters

other

The code point to compare with this code point.