1
Fork 0

Inplace what now

This commit is contained in:
Steffo 2025-01-07 17:44:43 +01:00
parent 05802d7ba4
commit f3e82306f5
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -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