From 1bd64440cb89b8140d1e1ff24b90439431ed3224 Mon Sep 17 00:00:00 2001 From: Polaris Date: Fri, 16 Aug 2024 15:25:14 -0400 Subject: [PATCH] cleanup --- components/scoreplaylog/colums.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/components/scoreplaylog/colums.tsx b/components/scoreplaylog/colums.tsx index 37ff203..e6896c9 100644 --- a/components/scoreplaylog/colums.tsx +++ b/components/scoreplaylog/colums.tsx @@ -67,9 +67,7 @@ export const columns: ColumnDef[] = [ 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[] = [ header: "Difficulty", cell: ({ row }) => (
- {row.original.level} -
- {getDifficultyText(row.original.chartId)} -
+ {row.original.level} +
+ {getDifficultyText(row.original.chartId)} + ), }, {