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) {
|
for (const story of sorted) {
|
||||||
if (story.seriesId) {
|
if (story.seriesId) {
|
||||||
if (!addedSeries.has(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({
|
items.push({
|
||||||
type: 'series',
|
type: 'series',
|
||||||
seriesId: story.seriesId,
|
seriesId: story.seriesId,
|
||||||
|
|||||||
Reference in New Issue
Block a user