diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-02-19 17:24:19 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-03-02 08:24:13 -0400 |
commit | b9164020ecf0a8a136c7e45c4c23fe38fc29cd98 (patch) | |
tree | d3d4d80abad7a9a09ad800e6efa5bd94d0b42a62 | |
parent | 78154d815befc094a8660f7a0b41b05ba20ac228 (diff) |
content: gAIPTracksChunkItem: mind order of release
-rw-r--r-- | src/content/dependencies/generateArtistInfoPageTracksChunkItem.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js b/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js index ba3005e2..1c311036 100644 --- a/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js +++ b/src/content/dependencies/generateArtistInfoPageTracksChunkItem.js @@ -1,3 +1,4 @@ +import {sortChronologically} from '#sort'; import {empty} from '#sugar'; export default { @@ -80,7 +81,15 @@ export default { query.track.duration, rerelease: - query.track.isSecondaryRelease, + // It's kinda awkward to perform this chronological sort here, + // per track, rather than just reusing the one that's done to + // sort all the items on the page altogether... but then, the + // sort for the page is actually *a different* sort, on purpsoe. + // That sort is according to the dates of the contributions; + // this is according to the dates of the tracks. Those can be + // different - and it's the latter that determines whether the + // track is a rerelease! + sortChronologically(query.track.allReleases)[0] !== query.track, contribAnnotations: (query.displayedContributions |