diff options
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 |
commit | 4f1f288d01590517add1f443e3c332a614bc11fd (patch) | |
tree | 6a69473856920cf4cedb4c52dbe78947dd70c5af /src | |
parent | 35c569ae4adbe2854762019f4b2f530a0f662c48 (diff) |
sort albums alphabetically before by date added
Diffstat (limited to 'src')
-rw-r--r-- | src/listing-spec.js | 3 |
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; |