Skip to main content

Function: compareCloudSyncWriteKey()

compareCloudSyncWriteKey(a: CloudSyncWriteKey, b: CloudSyncWriteKey): number

Defined in: shared/types/cloudSync.ts:208

Compares two write keys using ADR-016's deterministic ordering.

Parametersโ€‹

aโ€‹

CloudSyncWriteKey

bโ€‹

CloudSyncWriteKey

Returnsโ€‹

number

Negative when a should be applied before b

  • Positive when a should be applied after b
  • Zero when considered equal