From b8d7e183716ba463ffbad1243c19fed9a5b85c8d Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 10 May 2023 10:02:50 +0800 Subject: [PATCH] Fix sort, this was reversed --- src/utils/timeline-utils.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/timeline-utils.jsx b/src/utils/timeline-utils.jsx index e9dc33d5..afe79ea2 100644 --- a/src/utils/timeline-utils.jsx +++ b/src/utils/timeline-utils.jsx @@ -119,8 +119,8 @@ export function groupContext(items) { // Sort items by checking inReplyToId contexts.forEach((context) => { context.sort((a, b) => { - if (a.inReplyToId === b.id) return -1; - if (b.inReplyToId === a.id) return 1; + if (a.inReplyToId === b.id) return 1; + if (b.inReplyToId === a.id) return -1; return 0; }); });