The Free Software Media System - Server Backend & API
Use GetOrderBy in GetChildrenSorted
cviume1f7f1405e3b
diff --git a/Emby.Dlna/ContentDirectory/ControlHandler.cs b/Emby.Dlna/ContentDirectory/ControlHandler.csindex ca55cbad13..cced77f5bf 100644--- a/Emby.Dlna/ContentDirectory/ControlHandler.cs+++ b/Emby.Dlna/ContentDirectory/ControlHandler.cs@@ -511,10 +511,6 @@ namespace Emby.Dlna.ContentDirectory{var folder = (Folder)item;- var sortOrders = folder.IsPreSorted- ? Array.Empty<(string, SortOrder)>()- : new[] { (ItemSortBy.SortName, sort.SortOrder) };-string[] mediaTypes = Array.Empty<string>();bool? isFolder = null;@@ -548,7 +544,7 @@ namespace Emby.Dlna.ContentDirectory{Limit = limit,StartIndex = startIndex,- OrderBy = sortOrders,+ OrderBy = GetOrderBy(sort, folder.IsPreSorted),User = user,Recursive = true,IsMissing = false,