From 9ff95d1c338d8a194c91d90b3f8fccf59442da03 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 2 Aug 2021 16:15:57 -0300 Subject: fix misordered art lists & chronology links --- src/page/artist.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/page/artist.js') diff --git a/src/page/artist.js b/src/page/artist.js index 695fddf0..2e87669d 100644 --- a/src/page/artist.js +++ b/src/page/artist.js @@ -51,7 +51,7 @@ export function write(artist, {wikiData}) { key }); - const artListChunks = chunkByProperties(artThingsAll.flatMap(thing => + const artListChunks = chunkByProperties(sortByDate(artThingsAll.flatMap(thing => (['coverArtists', 'wallpaperArtists', 'bannerArtists'] .map(key => getArtistsAndContrib(thing, key)) .filter(({ contrib }) => contrib) @@ -61,7 +61,7 @@ export function write(artist, {wikiData}) { date: +(thing.coverArtDate || thing.date), ...props }))) - ), ['date', 'album']); + )), ['date', 'album']); const commentaryListChunks = chunkByProperties(commentaryThings.map(thing => ({ album: thing.album || thing, -- cgit 1.3.0-6-gf8a5