From 2b6beab3b0f1de741c9f19605500c1d5abd240d2 Mon Sep 17 00:00:00 2001 From: Takanori Oishi Date: Sat, 22 Jun 2024 19:07:16 +0900 Subject: [PATCH] fix: Archived Articles Virtual Scrolling --- src/features/Timeline/TimelineVirtualizedList.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/features/Timeline/TimelineVirtualizedList.tsx b/src/features/Timeline/TimelineVirtualizedList.tsx index e984baad..22d99f7b 100644 --- a/src/features/Timeline/TimelineVirtualizedList.tsx +++ b/src/features/Timeline/TimelineVirtualizedList.tsx @@ -114,9 +114,7 @@ export const TimelineVirtualizedList = ({ // XXX: Gatsby でなぜかソートされないことがあるため // クライアント側でもう一回ソートする // 重くなるため早めに原因特定したい - const sortedItems = [...items.nodes].sort((a, b) => { - return Number(b.dateX) - Number(a.dateX); - }); + const sortedItems = [...items.nodes]; const FallBack = (): JSX.Element => (