Applied review comments

This commit is contained in:
JPVenson
2025-01-19 12:29:14 +00:00
parent 56a4aa180b
commit cd75df6521
2 changed files with 2 additions and 8 deletions

View File

@@ -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)
{