diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-04-27 16:55:06 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-04-27 16:56:00 -0300 |
commit | 6128ba16c1b5c4c6095e0ddba0977817cce4bc6e (patch) | |
tree | 2f22c42534fdfb4e8dfdd3bb1108dd7eaeaeca23 /src/page/artist.js | |
parent | 3a322d96666b8da2b615ffd1c245f3a2f3d0cd90 (diff) |
data: new sortByPositionInFlash act function
Fixes #168. This refactors the duplicated logic with sortByPositionInAlbum into a new template, sortByPositionInParent.
Diffstat (limited to 'src/page/artist.js')
-rw-r--r-- | src/page/artist.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/page/artist.js b/src/page/artist.js index 29e4aba..4ef44d3 100644 --- a/src/page/artist.js +++ b/src/page/artist.js @@ -12,7 +12,7 @@ import { chunkByProperties, getTotalDuration, sortAlbumsTracksChronologically, - sortChronologically, + sortFlashesChronologically, } from '../util/wiki-data.js'; export const description = `per-artist info & artwork gallery pages`; @@ -129,7 +129,7 @@ export function write(artist, {wikiData}) { let flashes, flashListChunks; if (wikiInfo.enableFlashesAndGames) { - flashes = sortChronologically(artist.flashesAsContributor.slice()); + flashes = sortFlashesChronologically(artist.flashesAsContributor.slice()); flashListChunks = chunkByProperties( flashes.map((flash) => ({ act: flash.act, |