Merge branch 'main' of ssh://git.qubit.ltd:10022/lyman/FA3-Datafetch

This commit is contained in:
xucheng 2026-01-16 11:24:58 +08:00
commit a391357c32

View File

@ -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()