Expanded Recovery Meeting sort options and refined development SOP.

Implemented 'Meeting Name (A-Z)' and 'Meeting Name (Z-A)' sorting for Recovery Meetings, including UI dropdown updates and client-side re-sorting logic.

Updated documentation/GUIDE__DEVELOPMENT.md to v1.1 with clarified verification steps and inter-agent coordination protocols.

Minor label cleanup in Journal editor.
This commit is contained in:
Scott Idem
2026-02-16 15:58:17 -05:00
parent f34e24aa02
commit 4711f41c34
5 changed files with 33 additions and 20 deletions

View File

@@ -144,10 +144,11 @@
.toArray();
// Sort local results matching UI selection (Refactored 2026-02-16)
if ($idaa_loc.recovery_meetings.qry__order_by === 'name') {
local_results.sort((a, b) =>
(a.name ?? '').localeCompare(b.name ?? '')
);
const sort_mode = $idaa_loc.recovery_meetings.qry__order_by;
if (sort_mode === 'name_asc' || sort_mode === 'name') {
local_results.sort((a, b) => (a.name ?? '').localeCompare(b.name ?? ''));
} else if (sort_mode === 'name_desc') {
local_results.sort((a, b) => (b.name ?? '').localeCompare(a.name ?? ''));
} else {
// Robust Chronological Sort using pre-computed tmp_sort_1
// Handles Priority, Manual Sort, and the updated_on/created_on fallback