notifs: fix persistence sorting order

This commit is contained in:
2 * r + 2 * t 2025-09-20 16:22:57 +10:00
parent 5f1ffb32f4
commit ef3bcc290a

View file

@ -82,7 +82,7 @@ Singleton {
const data = JSON.parse(text());
for (const notif of data)
root.list.push(notifComp.createObject(root, notif));
root.list.sort((a, b) => a.time - b.time);
root.list.sort((a, b) => b.time - a.time);
root.loaded = true;
}
onLoadFailed: err => {