fix(idaa): resolve broken reactivity and sorting in Archive modules

- Fixed ReferenceError in Archive Content liveQuery (variable name mismatch).
    - Corrected main Archive list sorting by removing incorrect .reverse() call.
    - Implemented robust in-memory sorting for Archive Content to handle mixed directions (Group DESC + Sort ASC).
    - Simplified dependency tracking in Svelte 5 derivations to prevent empty list flickers.
This commit is contained in:
Scott Idem
2026-02-05 13:51:17 -05:00
parent 22e05ec095
commit ee79f08e69
3 changed files with 70 additions and 41 deletions

View File

@@ -44,7 +44,7 @@
.equals($slct.account_id)
// .orderBy('updated_on')
// .toArray()
.reverse()
// .reverse() // Removed reverse: sortBy('sort') already provides the correct 1, 2, 3... order
.sortBy('sort');
// .sortBy('updated_on');
// .sortBy('updated_on, created_on');