mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 05:53:03 +03:00
Applied review comments
This commit is contained in:
@@ -1216,13 +1216,7 @@ public sealed class BaseItemRepository
|
||||
|
||||
if (hasSearch)
|
||||
{
|
||||
List<(ItemSortBy, SortOrder)> prepend = new List<(ItemSortBy, SortOrder)>(4);
|
||||
if (hasSearch)
|
||||
{
|
||||
prepend.Add((ItemSortBy.SortName, SortOrder.Ascending));
|
||||
}
|
||||
|
||||
orderBy = filter.OrderBy = [.. prepend, .. orderBy];
|
||||
orderBy = filter.OrderBy = [(ItemSortBy.SortName, SortOrder.Ascending), .. orderBy];
|
||||
}
|
||||
else if (orderBy.Count == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user