From bcd343ef530b9fa5fdba7d4b5c24d4ba36ca5a95 Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Thu, 19 Mar 2026 16:14:39 +1100 Subject: [PATCH] fix(ui): sort project notes ascending to match branch timeline order Project notes were sorted newest-first (descending) while the branch timeline sorts oldest-first (ascending). Align project notes to use the same chronological order. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/staged/src/lib/features/projects/ProjectSection.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/staged/src/lib/features/projects/ProjectSection.svelte b/apps/staged/src/lib/features/projects/ProjectSection.svelte index dec6bb45..48727c9e 100644 --- a/apps/staged/src/lib/features/projects/ProjectSection.svelte +++ b/apps/staged/src/lib/features/projects/ProjectSection.svelte @@ -357,13 +357,13 @@ } } - /** All notes: completed (newest first) followed by generating. */ + /** All notes: completed (oldest first) followed by generating – matches branch timeline order. */ let timelineNotes = $derived( [...projectNotes].sort((a, b) => { const aIsGenerating = !a.title.trim() && !a.content.trim(); const bIsGenerating = !b.title.trim() && !b.content.trim(); if (aIsGenerating !== bIsGenerating) return aIsGenerating ? 1 : -1; - return b.createdAt - a.createdAt; + return a.createdAt - b.createdAt; }) );