mirror of
https://github.com/jellyfin/jellyfin
synced 2024-10-06 15:59:53 +00:00
Use GetOrderBy in GetChildrenSorted
This commit is contained in:
parent
6985a4f255
commit
e1f7f1405e
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue