Use GetOrderBy in GetChildrenSorted

This commit is contained in:
cvium 2021-11-09 19:33:15 +01:00
parent 6985a4f255
commit e1f7f1405e
1 changed files with 1 additions and 5 deletions

View File

@ -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,