Skip to content

Commit

Permalink
Fix to nukeop#104 : order albums chronologicaly
Browse files Browse the repository at this point in the history
  • Loading branch information
trekiteasy committed Feb 7, 2019
1 parent 8166b60 commit 86b5436
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/components/ArtistView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ class ArtistView extends React.Component {
</div>
<hr />
<AlbumList
albums={_.get(artist, 'releases')}
albums={_.get(artist, 'releases', []).sort((a, b) => {
return b.year - a.year;
})}
albumInfoSearch={albumInfoSearch}
history={history}
/>
Expand Down

0 comments on commit 86b5436

Please sign in to comment.