compareTo

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

Compares this Snowflake to another Snowflake.

The comparison is based first on the value of the timestamp, then on the value of the workerId, then on the value of the processId and finally on the value of the increment. It is consistent with equals, as defined by Comparable.