© 2026 Hedgehog Software, LLC
Array
sort
Order
events.sort((a, b) => { if (a.time === b.time) { return a.type === "end" ? -1 : 1 } return a.time - b.time })