From f484ce6da6bc3cc2edb8ca369d91abf11d0235d2 Mon Sep 17 00:00:00 2001 From: Patrick O'Sullivan Date: Fri, 1 Apr 2022 17:29:27 -0500 Subject: [PATCH] grid: fix sort order in notifications --- pkg/grid/src/nav/notifications/BasicNotification.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/grid/src/nav/notifications/BasicNotification.tsx b/pkg/grid/src/nav/notifications/BasicNotification.tsx index ecf7b4e8f..7e7f87ed4 100644 --- a/pkg/grid/src/nav/notifications/BasicNotification.tsx +++ b/pkg/grid/src/nav/notifications/BasicNotification.tsx @@ -40,7 +40,7 @@ export const BasicNotification = ({ notification, lid }: BasicNotificationProps) if (!first || !charge) { return null; } - const orderedByTime = notification.body.sort((a, b) => b.time - a.time); + const orderedByTime = notification.body.sort((a, b) => a.time - b.time); const contents = map(orderedByTime, 'content').filter((c) => c.length > 0); const large = contents.length === 0; const archive = () => {