« get me outta code hell

tags and a whole lot of data - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/common
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2020-11-21 22:02:25 -0400
committer(quasar) nebula <towerofnix@gmail.com>2020-11-21 22:02:25 -0400
commit372681e748f88f8f31f7845d6f0c6f160d0eed96 (patch)
treedacdb5a4b0b911e4df2940a9b2bffec468e1d040 /common
parentba2e5e70900fb9f8f3cbf781e9ebdb74d42fd6cf (diff)
tags and a whole lot of data
sorry for this commit being so f****u****c*kxng bad
Diffstat (limited to 'common')
-rw-r--r--common/common.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/common.js b/common/common.js
index b8eae480..6c21dfcb 100644
--- a/common/common.js
+++ b/common/common.js
@@ -72,6 +72,7 @@ const C = {
     TRACK_DIRECTORY: 'track',
     ARTIST_DIRECTORY: 'artist',
     ARTIST_AVATAR_DIRECTORY: 'artist-avatar',
+    TAG_DIRECTORY: 'tag',
     LISTING_DIRECTORY: 'list',
     ABOUT_DIRECTORY: 'about',
     FEEDBACK_DIRECTORY: 'feedback',
@@ -94,7 +95,7 @@ const C = {
 
     // Same details as the sortByDate, 8ut for covers~
     sortByArtDate: data => {
-        return data.sort((a, b) => (a.artDate || a.date) - (b.artDate || b.date));
+        return data.sort((a, b) => (a.coverArtDate || a.date) - (b.coverArtDate || b.date));
     },
 
     // This gets all the track o8jects defined in every al8um, and sorts them 8y