mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-09 07:09:57 +03:00
Recent sessions now properly sort.
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user