From c504e1dd0497edc694bd594052728ffb39af70a8 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 18 Apr 2023 19:10:25 -0300 Subject: content: generateTrackInfoPage: sort art chronology by art date --- src/content/dependencies/generateTrackInfoPage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/content/dependencies/generateTrackInfoPage.js b/src/content/dependencies/generateTrackInfoPage.js index 21c15004..5900b27e 100644 --- a/src/content/dependencies/generateTrackInfoPage.js +++ b/src/content/dependencies/generateTrackInfoPage.js @@ -47,7 +47,9 @@ export default { sortAlbumsTracksChronologically([ ...artist.albumsAsCoverArtist, ...artist.tracksAsCoverArtist, - ]), + ], { + getDate: albumOrTrack => albumOrTrack.coverArtDate, + }), }), albumLink: relation('linkAlbum', track.album), -- cgit 1.3.0-6-gf8a5