From 8b5ceaf59940c030706ccce030151c740fa9e493 Mon Sep 17 00:00:00 2001 From: Katalina Okano Date: Fri, 9 Jun 2023 16:48:24 -0400 Subject: [PATCH] sort by world id --- app/routes/_index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/_index.tsx b/app/routes/_index.tsx index f60e7b5..871f53e 100644 --- a/app/routes/_index.tsx +++ b/app/routes/_index.tsx @@ -13,7 +13,7 @@ export const loader = async () => { fetchPopulationWorlds(), ]); - return json({ metagame, population }); + return json({ metagame: metagame.sort((a, b) => a.id - b.id), population }); }; export const meta: V2_MetaFunction = () => {