« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/data/things.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/data/things.js b/src/data/things.js
index 2d199c10..35ae5cbf 100644
--- a/src/data/things.js
+++ b/src/data/things.js
@@ -32,6 +32,7 @@ import * as S from './serialize.js';
 
 import {
     getKebabCase,
+    sortByArtDate,
 } from '../util/wiki-data.js';
 
 import find from '../util/find.js';
@@ -1055,7 +1056,8 @@ ArtTag.propertyDescriptors = {
         expose: {
             dependencies: ['albumData', 'trackData'],
             compute: ({ albumData, trackData, [ArtTag.instance]: artTag }) => (
-                [...albumData, ...trackData].filter(thing => thing.artTags?.includes(artTag)))
+                sortByArtDate([...albumData, ...trackData]
+                    .filter(thing => thing.artTags?.includes(artTag))))
         }
     }
 };