« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateListRandomPageLinksGroupSection.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/generateListRandomPageLinksGroupSection.js')
-rw-r--r--src/content/dependencies/generateListRandomPageLinksGroupSection.js3
1 files changed, 2 insertions, 1 deletions
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)),
   }),