« get me outta code hell

sort albums alphabetically before by date added - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-01-02 22:01:05 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-01-02 22:01:05 -0400
commit4f1f288d01590517add1f443e3c332a614bc11fd (patch)
tree6a69473856920cf4cedb4c52dbe78947dd70c5af /src
parent35c569ae4adbe2854762019f4b2f530a0f662c48 (diff)
sort albums alphabetically before by date added
Diffstat (limited to 'src')
-rw-r--r--src/listing-spec.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/listing-spec.js b/src/listing-spec.js
index e96955d9..636e5f67 100644
--- a/src/listing-spec.js
+++ b/src/listing-spec.js
@@ -84,8 +84,7 @@ const listingSpec = [
 
     data: ({wikiData: {albumData}}) =>
       chunkByProperties(
-        albumData
-          .filter(a => a.dateAddedToWiki)
+        sortAlphabetically(albumData.filter(a => a.dateAddedToWiki))
           .sort((a, b) => {
             if (a.dateAddedToWiki < b.dateAddedToWiki) return -1;
             if (a.dateAddedToWiki > b.dateAddedToWiki) return 1;