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

@@ -365,7 +365,7 @@ export async function process_ae_obj__post_comment_props({
sort_val
}_${obj.updated_on ?? obj.created_on}`;
obj.tmp_sort_2 = `${obj.group ?? ''}_${obj.priority ? '1' : '0'}_${
(obj.sort ?? 0).toString().padStart(2, '0')
sort_val
}_${obj.updated_on}_${obj.created_on}`;
return obj;