Skip to content

Commit

Permalink
Fix the server sorting being id by default
Browse files Browse the repository at this point in the history
  • Loading branch information
YummyBacon5 authored Feb 5, 2024
1 parent 38ca0dd commit bd97935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bd97935

Please sign in to comment.