fix: sort sessions by updated time (resolves #5074) (#5080)

This commit is contained in:
Ariane Emory 2025-12-08 16:04:39 -05:00 committed by GitHub
parent 0baee00be4
commit 130345bd5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,6 +26,7 @@ export function DialogSessionList() {
const today = new Date().toDateString()
return sync.data.session
.filter((x) => x.parentID === undefined)
.toSorted((a, b) => b.time.updated - a.time.updated)
.map((x) => {
const date = new Date(x.time.updated)
let category = date.toDateString()