Merge branch 'main' of ssh://git.qubit.ltd:10022/lyman/FA3-Datafetch
This commit is contained in:
commit
a391357c32
@ -75,6 +75,11 @@ export function HistoryView() {
|
|||||||
groups[sid].logs.push(log)
|
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
|
// Convert to array and sort by timestamp
|
||||||
const sortedGroups = Object.values(groups).sort((a, b) =>
|
const sortedGroups = Object.values(groups).sort((a, b) =>
|
||||||
new Date(b.timestamp).getTime() - new Date(a.timestamp).getTime()
|
new Date(b.timestamp).getTime() - new Date(a.timestamp).getTime()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user