From 6bcd2354dcee79838f720bd7e6bcee6ee9bd74aa Mon Sep 17 00:00:00 2001 From: Stefan Hardegger Date: Mon, 20 Jul 2026 13:23:42 +0200 Subject: [PATCH] fix series order on authoer page --- frontend/src/app/authors/[id]/page.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/authors/[id]/page.tsx b/frontend/src/app/authors/[id]/page.tsx index 7765f1e..b8a040a 100644 --- a/frontend/src/app/authors/[id]/page.tsx +++ b/frontend/src/app/authors/[id]/page.tsx @@ -27,7 +27,9 @@ function buildDisplayItems(stories: Story[], authorId: string): DisplayItem[] { for (const story of sorted) { if (story.seriesId) { if (!addedSeries.has(story.seriesId)) { - const seriesStories = sorted.filter(s => s.seriesId === story.seriesId); + const seriesStories = sorted + .filter(s => s.seriesId === story.seriesId) + .sort((a, b) => (a.volume ?? Infinity) - (b.volume ?? Infinity)); items.push({ type: 'series', seriesId: story.seriesId,