From f3f2c6b0235625f970057a195b321320d7fcc684 Mon Sep 17 00:00:00 2001 From: Petr Plenkov Date: Tue, 31 Mar 2026 21:53:08 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20timeline=20group=20sort:=20localeCompare?= =?UTF-8?q?=20=E2=86=92=20numeric=20Date=20comparison=20(#820)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Initial plan * Fix timeline sort to use numeric datetime comparison instead of string localeCompare * chore: remove accidentally committed root package-lock.json Agent-Logs-Url: https://github.com/ThePlenkov/hindsight/sessions/d02f10c5-cc48-4977-84a9-48870f9460ec Co-authored-by: ThePlenkov <6381507+ThePlenkov@users.noreply.github.com> * chore: restore package-lock.json to its original state from main Agent-Logs-Url: https://github.com/ThePlenkov/hindsight/sessions/2ede4783-55ef-4f36-8ea7-7d65c5362a0a Co-authored-by: ThePlenkov <6381507+ThePlenkov@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ThePlenkov <6381507+ThePlenkov@users.noreply.github.com> --- hindsight-control-plane/src/components/data-view.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hindsight-control-plane/src/components/data-view.tsx b/hindsight-control-plane/src/components/data-view.tsx index 1e073c92..236561e8 100644 --- a/hindsight-control-plane/src/components/data-view.tsx +++ b/hindsight-control-plane/src/components/data-view.tsx @@ -1003,7 +1003,7 @@ function TimelineView({ }); return Object.entries(groups) - .sort(([a], [b]) => a.localeCompare(b)) + .sort(([, a], [, b]) => a.date.getTime() - b.date.getTime()) .map(([key, { items, date }]) => ({ key, label: getGroupLabel(key, date),