From bd97935eece810c375039dc5d65f3de8251d52df Mon Sep 17 00:00:00 2001 From: Yummy_Bacon5 <68166338+YummyBacon5@users.noreply.github.com> Date: Mon, 5 Feb 2024 16:56:25 +0000 Subject: [PATCH] Fix the server sorting being id by default --- frontend/src/Home.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Home.tsx b/frontend/src/Home.tsx index b42d9f7..b7658d3 100644 --- a/frontend/src/Home.tsx +++ b/frontend/src/Home.tsx @@ -28,7 +28,7 @@ export default function Home() { async function GetAllWords(reloadWords?: boolean) { const searchParams = new URLSearchParams(location.search); - const sortby = searchParams.get("sortby") as GetAllWordsSortByOptions || "id"; + const sortby = searchParams.get("sortby") as GetAllWordsSortByOptions || "totaldoots"; const orderby = searchParams.get("orderby") as GetAllWordsOrderByOptions || "desc"; if(reloadWords) {