Compute intra-day ordering weight for a transaction.
Lower weights are processed first within the same day.
This ensures domain-correct ordering: issuances before exercises,
acceptances before splits, transfers before conversions, etc.
Weights are ported from libs/api/service-ocp/utils/transactionSort.js
to ensure parity between DB and Canton data processing.
Compute intra-day ordering weight for a transaction.
Lower weights are processed first within the same day. This ensures domain-correct ordering: issuances before exercises, acceptances before splits, transfers before conversions, etc.
Weights are ported from libs/api/service-ocp/utils/transactionSort.js to ensure parity between DB and Canton data processing.