diff --git a/src/components/NotificationCentre.vue b/src/components/NotificationCentre.vue index d89a2da..40b3bd8 100644 --- a/src/components/NotificationCentre.vue +++ b/src/components/NotificationCentre.vue @@ -45,6 +45,11 @@ const buttonClass = computed(() => { hover: showNotifCentre.value } }) +const eventsOrdered = computed(() => { + return Object.entries(events.value).sort(([eventIdA, eventA], [eventIdB, eventB]) => { + return eventB.timestamp - eventA.timestamp + }) +})