Open Cap Table Protocol Canton SDK - v0.2.239
    Preparing search index...

    Function buildTransactionSortKey

    • Build a composite sort key for deterministic same-day ordering.

      Key structure: day|weight|group|created|id This ensures:

      • Same-day transactions are ordered by domain weight
      • Within same weight, grouped by security_id for locality
      • Within same group, ordered by created timestamp
      • Final tiebreaker by transaction id for determinism

      Parameters

      • tx: Record<string, unknown>

      Returns string

      OcpValidationError if tx.date is missing or invalid - fail fast on malformed records