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:
Maxr1998 2022-03-04 18:59:49 +01:00
parent 5d8b527b92
commit 209d731250
No known key found for this signature in database
GPG Key ID: ECECF0D4F4816C81

View File

@ -1319,7 +1319,9 @@ function renderChildren(page, item) {
Fields: fields
};
if (item.Type !== 'BoxSet') {
if (item.Type == 'MusicAlbum') {
query.SortBy = 'ParentIndexNumber,IndexNumber,SortName';
} else if (item.Type !== 'BoxSet') {
query.SortBy = 'SortName';
}