diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/listing-spec.js | 7 |
1 files 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}) => |