From 1aec864eb848510ac85e94bc5a989ace95104f4f Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 13 Aug 2023 23:43:20 -0300 Subject: content: genreateListRandomPageLinksGroupSection: explicit sort --- src/content/dependencies/generateListRandomPageLinksGroupSection.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content/dependencies/generateListRandomPageLinksGroupSection.js b/src/content/dependencies/generateListRandomPageLinksGroupSection.js index 9a46e2c..006ebdf 100644 --- a/src/content/dependencies/generateListRandomPageLinksGroupSection.js +++ b/src/content/dependencies/generateListRandomPageLinksGroupSection.js @@ -1,4 +1,5 @@ import {stitchArrays} from '../../util/sugar.js'; +import {sortChronologically} from '../../util/wiki-data.js'; export default { contentDependencies: ['generateColorStyleVariables', 'linkGroup'], @@ -8,7 +9,7 @@ export default { query: (sprawl, group) => ({ albums: - sprawl.albumData + sortChronologically(sprawl.albumData.slice()) .filter(album => album.groups.includes(group)), }), -- cgit 1.3.0-6-gf8a5