Fix sorting albums by year (should use name as secondary sort field).

Relates to https://github.com/navidrome/navidrome/issues/961#issuecomment-967624681
This commit is contained in:
Deluan
2021-11-17 21:47:14 -05:00
parent 3bd6f82c80
commit d4447e373f
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -91,7 +91,7 @@ const AlbumTableView = ({
<NumberField source="playCount" sortByOrder={'DESC'} />
),
year: (
<RangeField source={'year'} sortBy={'maxYear'} sortByOrder={'DESC'} />
<RangeField source={'year'} sortBy={'max_year'} sortByOrder={'DESC'} />
),
duration: isDesktop && <DurationField source="duration" />,
rating: config.enableStarRating && (
@@ -132,7 +132,7 @@ const AlbumTableView = ({
)}
tertiaryText={(r) => (
<>
<RangeField record={r} source={'year'} sortBy={'maxYear'} />
<RangeField record={r} source={'year'} sortBy={'max_year'} />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</>
)}