Removing custom sorter, we now use Lodash orderBy, one less responsibility

This commit is contained in:
James Barnsley
2020-11-08 20:49:48 +13:00
parent d3ad4ac28b
commit 6c0390f7b6
23 changed files with 450 additions and 568 deletions

View File

@ -244,17 +244,17 @@ class LibraryTracks extends React.Component {
label: i18n('fields.filters.name'),
},
{
value: 'artists.first.name',
value: 'artist',
label: i18n('fields.filters.artist'),
},
{
value: 'album.name',
value: 'album',
label: i18n('fields.filters.album'),
},
];
const options = (
<div className="header__options__wrapper">
<>
<FilterField
initialValue={filter}
handleChange={(value) => this.setState({ filter: value, limit: per_page })}
@ -286,7 +286,7 @@ class LibraryTracks extends React.Component {
{loading ? <Icon name="close" /> : <Icon name="refresh" /> }
{loading ? <I18n path="actions.cancel" /> : <I18n path="actions.refresh" /> }
</Button>
</div>
</>
);
return (