From 3aa4a9a912345ee17c5aa480e7f78bbb9b9c8045 Mon Sep 17 00:00:00 2001 From: xucheng Date: Fri, 16 Jan 2026 10:45:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8C=89=E6=97=B6=E9=97=B4=E6=88=B3?= =?UTF-8?q?=E5=8D=87=E5=BA=8F=E6=8E=92=E5=BA=8F=E5=8E=86=E5=8F=B2=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E7=BB=84=E5=86=85=E7=9A=84=E6=97=A5=E5=BF=97=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/history-view.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/components/history-view.tsx b/frontend/src/components/history-view.tsx index f74c00d..fa2441c 100644 --- a/frontend/src/components/history-view.tsx +++ b/frontend/src/components/history-view.tsx @@ -75,6 +75,11 @@ export function HistoryView() { groups[sid].logs.push(log) }) + // Sort logs within each group by timestamp (ascending) for display + Object.values(groups).forEach(group => { + group.logs.sort((a, b) => new Date(a.timestamp).getTime() - new Date(b.timestamp).getTime()) + }) + // Convert to array and sort by timestamp const sortedGroups = Object.values(groups).sort((a, b) => new Date(b.timestamp).getTime() - new Date(a.timestamp).getTime()