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:
@@ -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'} />
|
||||
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user