diff --git a/client/src/app/pages/dashboard/users/games/_game/_playtype/SessionsPage.tsx b/client/src/app/pages/dashboard/users/games/_game/_playtype/SessionsPage.tsx index f89e0bd67..215ac17c9 100644 --- a/client/src/app/pages/dashboard/users/games/_game/_playtype/SessionsPage.tsx +++ b/client/src/app/pages/dashboard/users/games/_game/_playtype/SessionsPage.tsx @@ -52,7 +52,11 @@ export default function SessionsPage({ } return res.body - .sort(NumericSOV(x => x.calculatedData[rating] ?? 0, true)) + .sort( + sessionSet === "best" + ? NumericSOV(x => x.calculatedData[rating] ?? 0, true) + : NumericSOV(x => x.timeEnded ?? 0, true) + ) .map((e, i) => ({ ...e, __related: {