album sorting date added

This commit is contained in:
Core 2022-09-26 22:47:34 +01:00
parent 5921b98619
commit 07c938630b
No known key found for this signature in database
GPG key ID: 2AB8327FBA02D1C0

View file

@ -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 = "";