Ulid.opCmp

int opCmp(const Ulid rhs) const @safe pure nothrow @nogc

Compares two ULIDs by their 128-bit value: timestamp first, then the random component. This is also the order of their text and bytes.

Parameters

rhsthe ULID to compare with.

Returns

a negative value, zero or a positive value when this ULID is

less than, equal to or greater than rhs.