Table of Contents

Method CompareIds

Namespace
Millrace.Storage.Monitoring
Assembly
Millrace.dll

CompareIds(Guid, Guid)

Orders ids the way a database orders a uuid column — by RFC 4122 byte order — so the in-memory provider and a relational one agree on the tiebreak.

public static int CompareIds(Guid left, Guid right)

Parameters

left Guid
right Guid

Returns

int

Remarks

CompareTo(Guid) does not do this: it compares the first three fields numerically in native endianness, which differs from byte order on little-endian machines. Ties are near-impossible with UUIDv7 ids minted from time, but "near-impossible" is not a contract, and the conformance kit asserts one order across every provider.