1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #2265 from MrTimscampi/sort-by-premiere-date

Sort items by premiere date on the details page
This commit is contained in:
Bill Thornton 2020-12-25 10:28:42 -05:00 committed by GitHub
commit 58aa865af0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -1209,7 +1209,7 @@ function renderMoreFromArtist(view, item, apiClient) {
IncludeItemTypes: 'MusicAlbum', IncludeItemTypes: 'MusicAlbum',
Recursive: true, Recursive: true,
ExcludeItemIds: item.Id, ExcludeItemIds: item.Id,
SortBy: 'ProductionYear,SortName', SortBy: 'PremiereDate,ProductionYear,SortName',
SortOrder: 'Descending' SortOrder: 'Descending'
}; };
@ -1391,7 +1391,7 @@ function renderChildren(page, item) {
Fields: fields Fields: fields
}); });
} else if (item.Type == 'MusicArtist') { } else if (item.Type == 'MusicArtist') {
query.SortBy = 'ProductionYear,SortName'; query.SortBy = 'PremiereDate,ProductionYear,SortName';
} }
promise = promise || apiClient.getItems(apiClient.getCurrentUserId(), query); promise = promise || apiClient.getItems(apiClient.getCurrentUserId(), query);

View file

@ -195,7 +195,7 @@ function renderSection(page, item, element, type) {
ArtistIds: '', ArtistIds: '',
AlbumArtistIds: '', AlbumArtistIds: '',
SortOrder: 'Descending', SortOrder: 'Descending',
SortBy: 'ProductionYear,Sortname' SortBy: 'PremiereDate,ProductionYear,Sortname'
}, { }, {
shape: 'overflowSquare', shape: 'overflowSquare',
playFromHere: true, playFromHere: true,