From 07c938630b03d83375adf98b66bea9f0f0cbe353 Mon Sep 17 00:00:00 2001 From: Core Date: Mon, 26 Sep 2022 22:47:34 +0100 Subject: [PATCH] album sorting date added --- src/renderer/main/vueapp.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/renderer/main/vueapp.js b/src/renderer/main/vueapp.js index 8ce2fef2..a282e2f1 100644 --- a/src/renderer/main/vueapp.js +++ b/src/renderer/main/vueapp.js @@ -500,6 +500,7 @@ const app = new Vue({ name: app.getLz("term.sortBy.name"), genre: app.getLz("term.sortBy.genre"), releaseDate: app.getLz("term.sortBy.releaseDate"), + dateAdded: app.getLz("term.sortBy.dateAdded"), }; app.$data.library.artists.sortingOptions = { @@ -2574,6 +2575,9 @@ const app = new Vue({ if (self.library.albums.sorting[index] == "genre") { aa = a.attributes.genreNames[0]; bb = b.attributes.genreNames[0]; + } else if (self.library.albums.sorting[index] === "dateAdded") { + aa = a.attributes?.dateAdded; + bb = b.attributes?.dateAdded; } if (aa == null) { aa = "";