fix series order on authoer page
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user