feat(idaa): sort BB posts by most recent activity

- Refactored lq__post_obj_li to perform in-memory descending sort by updated_on/created_on.
- Ensured newest and recently modified posts appear at the top of the list.
- Hardened reactivity for Svelte 5 stability.
This commit is contained in:
Scott Idem
2026-02-06 10:06:30 -05:00
parent 85c92b2736
commit 7401003614

View File

@@ -69,6 +69,14 @@
return archiveDate > now;
})
.toArray();
// SORT: Most recently updated or created at the top (Refactored 2026-02-05)
results.sort((a, b) => {
const date_a = new Date(a.updated_on ?? a.created_on).getTime();
const date_b = new Date(b.updated_on ?? b.created_on).getTime();
return date_b - date_a;
});
return results;
});
});