From c795951857391e3837298194558ee1288731891d Mon Sep 17 00:00:00 2001 From: Qstick Date: Tue, 17 Jul 2018 22:05:52 -0400 Subject: [PATCH] Fixed: Sort Next and Last Album by Release Date Fixes #401 --- frontend/src/Store/Actions/artistIndexActions.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/Store/Actions/artistIndexActions.js b/frontend/src/Store/Actions/artistIndexActions.js index 1a4c1d66a..0021d85e5 100644 --- a/frontend/src/Store/Actions/artistIndexActions.js +++ b/frontend/src/Store/Actions/artistIndexActions.js @@ -165,14 +165,16 @@ export const defaultState = { nextAlbum: function(item) { if (item.nextAlbum) { - return item.nextAlbum.title; + return item.nextAlbum.releaseDate; } + return '1/1/1000'; }, lastAlbum: function(item) { if (item.lastAlbum) { - return item.lastAlbum.title; + return item.lastAlbum.releaseDate; } + return '1/1/1000'; }, albumCount: function(item) {