diff --git a/holycow_frontend/src/app/board/page.tsx b/holycow_frontend/src/app/board/page.tsx index 966cb2f..b56ddbb 100644 --- a/holycow_frontend/src/app/board/page.tsx +++ b/holycow_frontend/src/app/board/page.tsx @@ -5,7 +5,7 @@ import {PlayerO} from "@/holycow" export default async function Page() { const resultsResponse = await fetch(`${process.env.BASE_URL}/api/results/`, {cache: "no-store"}) const results: PlayerO[] = await resultsResponse.json() - const ratedPlayers = results.filter(p => p.human_score !== null).toSorted((a, b) => a.human_score - b.human_score).toReversed() + const ratedPlayers = results.filter(p => p.human_score !== null).sort((a, b) => a.human_score - b.human_score).reverse() return ( <BoardBox