diff options
Diffstat (limited to 'src/content/dependencies/listArtistsByDuration.js')
-rw-r--r-- | src/content/dependencies/listArtistsByDuration.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/content/dependencies/listArtistsByDuration.js b/src/content/dependencies/listArtistsByDuration.js index 478e99bb..4c3bd81e 100644 --- a/src/content/dependencies/listArtistsByDuration.js +++ b/src/content/dependencies/listArtistsByDuration.js @@ -1,5 +1,11 @@ import {stitchArrays} from '../../util/sugar.js'; -import {filterByCount, getTotalDuration, sortByCount} from '../../util/wiki-data.js'; + +import { + filterByCount, + getTotalDuration, + sortAlphabetically, + sortByCount, +} from '../../util/wiki-data.js'; export default { contentDependencies: ['generateListingPage', 'linkArtist'], @@ -10,7 +16,7 @@ export default { }, query({artistData}, spec) { - const artists = artistData.slice(); + const artists = sortAlphabetically(artistData.slice()); const durations = artists.map(artist => getTotalDuration([ ...(artist.tracksAsArtist ?? []), |