From cd04849aaff2235cf3af036bc57c7fcb51d2e1b4 Mon Sep 17 00:00:00 2001 From: Frederik Bolding Date: Sun, 8 Oct 2023 15:39:22 +0200 Subject: [PATCH] Make intended sorting explicit (#106) --- src/pages/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index d2c6ffe28..e922b9413 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -48,7 +48,9 @@ const IndexPage = () => { } `); - const rawChains = rawData.allChain.nodes; + const rawChains = rawData.allChain.nodes.sort( + (a, b) => a.chainId - b.chainId + ); const icons = rawData.allImageSharp.nodes.reduce((acc, node) => { acc[node.parent.name] = node.gatsbyImageData; return acc;