Fixes #256
@ -65,21 +65,21 @@ function ArtistIndexSortMenu(props) {
</SortMenuItem>
<SortMenuItem
name="nextAiring"
name="nextAlbum"
sortKey={sortKey}
sortDirection={sortDirection}
onPress={onSortSelect}
>
Next Airing
Next Album
name="previousAiring"
name="lastAlbum"
Previous Airing
Last Album
@ -118,15 +118,6 @@ function ArtistIndexSortMenu(props) {
Track Count
name="latestAlbum"
Latest Album
name="path"
@ -163,6 +163,18 @@ export const defaultState = {
return progress + trackCount / 1000000;
},
nextAlbum: function(item) {
if (item.nextAlbum) {
return item.nextAlbum.title;
}
lastAlbum: function(item) {
if (item.lastAlbum) {
return item.lastAlbum.title;
albumCount: function(item) {
return item.statistics.albumCount;