fixes sorting by difficulty

This commit is contained in:
Christian Beutel
2025-09-07 17:59:35 +02:00
parent 8cc7029243
commit 3b7f30908c
8 changed files with 41 additions and 11 deletions

View File

@@ -51,9 +51,9 @@
];
const difficultyItems: SelectItem[] = [
{ text: $_("easy"), value: "easy" },
{ text: $_("moderate"), value: "moderate" },
{ text: $_("difficult"), value: "difficult" },
{ text: $_("easy"), value: 0 },
{ text: $_("moderate"), value: 1 },
{ text: $_("difficult"), value: 2 },
];
let searchDropdownItems: SearchItem[] = $state([]);