The Free Software Media System - Server Backend & API
always sort season by index number
Qian Qiane16ea7b23696
diff --git a/MediaBrowser.Controller/Entities/TV/Series.cs b/MediaBrowser.Controller/Entities/TV/Series.csindex a324f79eff..3e0e7b1c5b 100644--- a/MediaBrowser.Controller/Entities/TV/Series.cs+++ b/MediaBrowser.Controller/Entities/TV/Series.cs@@ -213,7 +213,7 @@ namespace MediaBrowser.Controller.Entities.TVquery.AncestorWithPresentationUniqueKey = null;query.SeriesPresentationUniqueKey = seriesKey;query.IncludeItemTypes = new[] { BaseItemKind.Season };- query.OrderBy = new[] { (ItemSortBy.SortName, SortOrder.Ascending) };+ query.OrderBy = new[] { (ItemSortBy.IndexNumber, SortOrder.Ascending) };if (user is not null && !user.DisplayMissingEpisodes){@@ -231,10 +231,6 @@ namespace MediaBrowser.Controller.Entities.TVquery.AncestorWithPresentationUniqueKey = null;query.SeriesPresentationUniqueKey = seriesKey;- if (query.OrderBy.Count == 0)- {- query.OrderBy = new[] { (ItemSortBy.SortName, SortOrder.Ascending) };- }if (query.IncludeItemTypes.Length == 0){