Status: IN
`total_order()` sorts by `(timestamp, node_id)`, using lexicographic node ID comparison as a deterministic tiebreaker when timestamps are equal.
Source: entries/2026/05/29/lamport-clocks-lamport.md
def total_order(events):
return sorted(events, key=lambda e: (e.timestamp, e.node_id))