From 2f129a9ca167c5fecf303234c7e2bb5ea347f1c2 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 15 Jan 2023 16:00:03 -0400 Subject: change tracks/by-date sorting algorithm --- src/listing-spec.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/listing-spec.js b/src/listing-spec.js index 636e5f67..05abbd05 100644 --- a/src/listing-spec.js +++ b/src/listing-spec.js @@ -615,9 +615,12 @@ const listingSpec = [ directory: 'tracks/by-date', stringsKey: 'listTracks.byDate', - data: ({wikiData: {trackData}}) => + data: ({wikiData: {albumData}}) => chunkByProperties( - sortChronologically(trackData.filter(t => t.date)), + sortByDate( + sortChronologically(albumData) + .flatMap(album => album.tracks) + .filter(track => track.date)), ['album', 'date']), html: (data, {html, language, link}) => -- cgit 1.3.0-6-gf8a5 From 4afee4aa8b8af89fcc00bcabaf6cf02176eb77da Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 15 Jan 2023 15:59:10 -0400 Subject: fix tracks/by-date missing rerelease accent --- src/listing-spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/listing-spec.js b/src/listing-spec.js index 05abbd05..26910c05 100644 --- a/src/listing-spec.js +++ b/src/listing-spec.js @@ -635,7 +635,7 @@ const listingSpec = [ html.tag('dd', html.tag('ul', tracks.map(track => - track.aka + track.originalReleaseTrack ? html.tag('li', {class: 'rerelease'}, language.$('listingPage.listTracks.byDate.track.rerelease', { -- cgit 1.3.0-6-gf8a5