mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-08-07 09:01:36 -04:00
Merge pull request #11615 from cptn-x/patch-1
Allow collection sort by Release Date Descending
This commit is contained in:
commit
727f176542
@ -125,7 +125,7 @@ namespace MediaBrowser.Controller.Entities.Movies
|
|||||||
if (string.Equals(DisplayOrder, "PremiereDate", StringComparison.OrdinalIgnoreCase))
|
if (string.Equals(DisplayOrder, "PremiereDate", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
// Sort by release date
|
// Sort by release date
|
||||||
return LibraryManager.Sort(children, user, new[] { ItemSortBy.ProductionYear, ItemSortBy.PremiereDate, ItemSortBy.SortName }, SortOrder.Ascending).ToList();
|
return LibraryManager.Sort(children, user, new[] { ItemSortBy.ProductionYear, ItemSortBy.PremiereDate, ItemSortBy.SortName }, SortOrder.Descending).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default sorting
|
// Default sorting
|
||||||
|
Loading…
x
Reference in New Issue
Block a user