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/misc-templates.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/misc-templates.js') diff --git a/src/misc-templates.js b/src/misc-templates.js index d4e4af3..139978d 100644 --- a/src/misc-templates.js +++ b/src/misc-templates.js @@ -45,6 +45,7 @@ export function getArtistString(artists, { // Chronology links export function generateChronologyLinks(currentThing, { + dateKey = 'date', contribKey, getThings, headingString, @@ -65,7 +66,7 @@ export function generateChronologyLinks(currentThing, { } return contributions.map(({ who: artist }) => { - const things = sortByDate(unique(getThings(artist))); + const things = sortByDate(unique(getThings(artist)), dateKey); const releasedThings = things.filter(thing => { const album = albumData.includes(thing) ? thing : thing.album; return !(album && album.directory === UNRELEASED_TRACKS_DIRECTORY); -- cgit 1.3.0-6-gf8a5