diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-04-15 18:33:18 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-04-15 18:33:18 -0300 |
commit | 403754d46dcb1d8cf72cf25b49e9b66a5e98140f (patch) | |
tree | 1ce405d3d11aeb187fe5e1dd2d7d1c3052d9d1b9 | |
parent | daab6daa23666f51dd96afb30e1728381bdd27c4 (diff) |
sort ArtTag.taggedInThings, fixes tag gallery page
-rw-r--r-- | src/data/things.js | 4 |
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)))) } } }; |