Sort High-Precision Timestamps

Parse a trace of events stamped by a server clock with nanosecond-precision ISO 8601 timestamps. Compare how parsing them with the legacy Date object truncates to milliseconds and causes sorting collisions, while Temporal.Instant.from() preserves the recorded nanosecond precision (note: in browsers, Temporal.Now.instant() is clamped for Spectre mitigation, so sub-millisecond local client intervals should use performance.now()).

30
new Date(ts) ms precision
Click Load to fetch the trace
Temporal.Instant.from(ts) ns precision
Click Load to fetch the trace