diff --git a/components/tick-table.tsx b/components/tick-table.tsx index e091de9..c7c8423 100644 --- a/components/tick-table.tsx +++ b/components/tick-table.tsx @@ -9,6 +9,11 @@ interface TickTableProps { } export default function TickTable(props: TickTableProps) { + const tickItems = Array.isArray(props.data) + ? [...props.data].sort( + (a, b) => parseInt(a.start_time_ms) - parseInt(b.start_time_ms) + ) + : [] return (