« get me outta code hell

content: generateTrackInfoPage: sort art chronology by art date - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-04-18 19:10:25 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-04-18 19:10:25 -0300
commitc504e1dd0497edc694bd594052728ffb39af70a8 (patch)
treedf31caef2d531c81230d28b3647a50f0ac973b4a /src/content
parent4fe9bfe3b653da593fa142eeb89d92f262680d8c (diff)
content: generateTrackInfoPage: sort art chronology by art date
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateTrackInfoPage.js4
1 files changed, 3 insertions, 1 deletions
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),