groups: fix sort order in notifications

This commit is contained in:
Patrick O'Sullivan 2022-04-01 17:18:32 -05:00
parent f194d863c6
commit a6e196a0fd

View File

@ -81,7 +81,7 @@ export function Notification(props: {
const { hovering, bind } = useHovering();
const dedupedBody = uniqBy(notification.body, item => item.link);
const orderedByTime = dedupedBody.sort((a, b) => b.time - a.time);
const orderedByTime = dedupedBody.sort((a, b) => a.time - b.time);
const contents = map(orderedByTime, 'content').filter(c => c.length > 0);
const first = notification.body[0];
if (!first) {