aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller
diff options
context:
space:
mode:
authorcptn <admin@extremehost.club>2024-05-13 22:59:41 -0400
committerGitHub <noreply@github.com>2024-05-13 22:59:41 -0400
commitfe07b4bbc553f9714ff81d788961503903b10977 (patch)
treec1c4775ba4793fd962d5f4f442d01b2d49feaa1f /MediaBrowser.Controller
parent69d4886697f3f5990069b6d7a8ca56d5a2ec111b (diff)
Allow collection sort by Release Date Descending
- default sort is still Release Date Ascending - choosing sort by Release Date will change it to sort by Release Date Descending This is because most people go to collections to browse new movies to watch, and recently released movies should be on top.
Diffstat (limited to 'MediaBrowser.Controller')
-rw-r--r--MediaBrowser.Controller/Entities/Movies/BoxSet.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Entities/Movies/BoxSet.cs b/MediaBrowser.Controller/Entities/Movies/BoxSet.cs
index d7ccfd8aee..8667e6539e 100644
--- a/MediaBrowser.Controller/Entities/Movies/BoxSet.cs
+++ b/MediaBrowser.Controller/Entities/Movies/BoxSet.cs
@@ -125,7 +125,7 @@ namespace MediaBrowser.Controller.Entities.Movies
if (string.Equals(DisplayOrder, "PremiereDate", StringComparison.OrdinalIgnoreCase))
{
// 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