This commit is contained in:
Polaris 2024-08-16 15:25:14 -04:00
parent 0ef5305fda
commit 1bd64440cb

View File

@ -67,9 +67,7 @@ export const columns: ColumnDef<chunithm>[] = [
const highScore = a.original.score ?? 0;
const lowScore = b.original.score ?? 0;
if (highScore < lowScore) return 1;
if (highScore > lowScore) return -1;
return 0;
return lowScore - highScore;
},
},
{
@ -107,10 +105,10 @@ export const columns: ColumnDef<chunithm>[] = [
header: "Difficulty",
cell: ({ row }) => (
<div className="font-medium">
{row.original.level}
<br />
{getDifficultyText(row.original.chartId)}
</div>
{row.original.level}
<br />
{getDifficultyText(row.original.chartId)}
</div>
),
},
{