mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Sort album tracks by (Parent)IndexNumber, then SortName
Track sorting in albums could previously be incorrect if metadata specified a SortName tag. Also see: jellyfin/jellyfin#7323, jellyfin/jellyfin#7324
This commit is contained in:
parent
5d8b527b92
commit
209d731250
1 changed files with 3 additions and 1 deletions
|
@ -1319,7 +1319,9 @@ function renderChildren(page, item) {
|
||||||
Fields: fields
|
Fields: fields
|
||||||
};
|
};
|
||||||
|
|
||||||
if (item.Type !== 'BoxSet') {
|
if (item.Type == 'MusicAlbum') {
|
||||||
|
query.SortBy = 'ParentIndexNumber,IndexNumber,SortName';
|
||||||
|
} else if (item.Type !== 'BoxSet') {
|
||||||
query.SortBy = 'SortName';
|
query.SortBy = 'SortName';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue