From 4f1f288d01590517add1f443e3c332a614bc11fd Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 2 Jan 2023 22:01:05 -0400 Subject: sort albums alphabetically before by date added --- src/listing-spec.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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; -- cgit 1.3.0-6-gf8a5