Skip to content

Commit

Permalink
Make intended sorting explicit (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding authored Oct 8, 2023
1 parent dbf20cd commit cd04849
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cd04849

Please sign in to comment.