Skip to content

Commit 91cfdf8

Browse files
committed
Sort game events and proposal descending
1 parent 679d1d5 commit 91cfdf8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/src/components/match/GameEvents.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ const gameEventItems = computed(() => {
4040
items.push(item)
4141
}
4242
}
43-
items.sort((a, b) => a.timestamp - b.timestamp)
43+
// Sort descending by timestamp: most recent first
44+
// This fits the order of the protocol list and helps when many items are present
45+
items.sort((a, b) => b.timestamp - a.timestamp)
4446
return items
4547
})
4648

0 commit comments

Comments
 (0)