From 7401003614177324ab25ed2ae4a79abddeafdb25 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Fri, 6 Feb 2026 10:06:30 -0500 Subject: [PATCH] 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. --- src/routes/idaa/(idaa)/bb/+page.svelte | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/routes/idaa/(idaa)/bb/+page.svelte b/src/routes/idaa/(idaa)/bb/+page.svelte index e9d721aa..a02a82ad 100644 --- a/src/routes/idaa/(idaa)/bb/+page.svelte +++ b/src/routes/idaa/(idaa)/bb/+page.svelte @@ -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; }); });