Better defaults to sort orders in List views

This commit is contained in:
Deluan
2020-06-09 07:45:23 -04:00
parent b54d4c75ae
commit 82d437f004
6 changed files with 24 additions and 13 deletions
+3 -3
View File
@@ -84,9 +84,9 @@ const AlbumListView = ({ hasShow, hasEdit, hasList, ...rest }) => {
<AlbumDatagrid expand={<AlbumDetails />} rowClick={'show'} {...rest}>
<TextField source="name" />
<ArtistLinkField />
{isDesktop && <NumberField source="songCount" />}
{isDesktop && <NumberField source="playCount" />}
<RangeField source={'year'} sortBy={'maxYear'} />
{isDesktop && <NumberField source="songCount" sortByOrder={'DESC'} />}
{isDesktop && <NumberField source="playCount" sortByOrder={'DESC'} />}
<RangeField source={'year'} sortBy={'maxYear'} sortByOrder={'DESC'} />
{isDesktop && <DurationField source="duration" />}
<AlbumContextMenu />
</AlbumDatagrid>