Skip to content

Commit

Permalink
fix: sort
Browse files Browse the repository at this point in the history
  • Loading branch information
willuhmjs authored Jul 18, 2024
1 parent 58ff62c commit 87852e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
import words from '$lib/data/words.json';
</script>

<Game data={words[words.length - 1]} />
<Game data={words.toSorted((a,b) => a.day - b.day)[words.length - 1]} />

0 comments on commit 87852e0

Please sign in to comment.