Skip to content

Commit

Permalink
Merge pull request jellyfin#2265 from MrTimscampi/sort-by-premiere-date
Browse files Browse the repository at this point in the history
Sort items by premiere date on the details page
  • Loading branch information
thornbill committed Dec 25, 2020
2 parents 60276a7 + 4cfc9dd commit 58aa865
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/controllers/itemDetails/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ function renderMoreFromArtist(view, item, apiClient) {
IncludeItemTypes: 'MusicAlbum',
Recursive: true,
ExcludeItemIds: item.Id,
SortBy: 'ProductionYear,SortName',
SortBy: 'PremiereDate,ProductionYear,SortName',
SortOrder: 'Descending'
};

Expand Down Expand Up @@ -1391,7 +1391,7 @@ function renderChildren(page, item) {
Fields: fields
});
} else if (item.Type == 'MusicArtist') {
query.SortBy = 'ProductionYear,SortName';
query.SortBy = 'PremiereDate,ProductionYear,SortName';
}

promise = promise || apiClient.getItems(apiClient.getCurrentUserId(), query);
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/itembynamedetailpage.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function renderSection(page, item, element, type) {
ArtistIds: '',
AlbumArtistIds: '',
SortOrder: 'Descending',
SortBy: 'ProductionYear,Sortname'
SortBy: 'PremiereDate,ProductionYear,Sortname'
}, {
shape: 'overflowSquare',
playFromHere: true,
Expand Down

0 comments on commit 58aa865

Please sign in to comment.