aboutsummaryrefslogtreecommitdiff
path: root/Emby.Dlna/ContentDirectory/ControlHandler.cs
diff options
context:
space:
mode:
authorcvium <clausvium@gmail.com>2021-11-09 19:33:15 +0100
committercvium <clausvium@gmail.com>2021-11-09 19:33:15 +0100
commite1f7f1405e3b71462b38f911519324b6d47e7b16 (patch)
tree9e4c57b52f1aa1b49d88c47e3c9a14cf924f859d /Emby.Dlna/ContentDirectory/ControlHandler.cs
parent6985a4f2558ac120e14327fc6addf656feca23a8 (diff)
Use GetOrderBy in GetChildrenSorted
Diffstat (limited to 'Emby.Dlna/ContentDirectory/ControlHandler.cs')
-rw-r--r--Emby.Dlna/ContentDirectory/ControlHandler.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/Emby.Dlna/ContentDirectory/ControlHandler.cs b/Emby.Dlna/ContentDirectory/ControlHandler.cs
index ca55cbad1..cced77f5b 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,