Applied review comments

pull/12798/head
JPVenson 3 weeks ago
parent 56a4aa180b
commit cd75df6521

@ -1216,13 +1216,7 @@ public sealed class BaseItemRepository
if (hasSearch) if (hasSearch)
{ {
List<(ItemSortBy, SortOrder)> prepend = new List<(ItemSortBy, SortOrder)>(4); orderBy = filter.OrderBy = [(ItemSortBy.SortName, SortOrder.Ascending), .. orderBy];
if (hasSearch)
{
prepend.Add((ItemSortBy.SortName, SortOrder.Ascending));
}
orderBy = filter.OrderBy = [.. prepend, .. orderBy];
} }
else if (orderBy.Count == 0) else if (orderBy.Count == 0)
{ {

@ -62,7 +62,7 @@ public sealed class LibraryStructureControllerTests : IClassFixture<JellyfinAppl
} }
[Fact] [Fact]
[Priority(-2)] [Priority(0)]
public async Task UpdateLibraryOptions_Valid_Success() public async Task UpdateLibraryOptions_Valid_Success()
{ {
var client = _factory.CreateClient(); var client = _factory.CreateClient();

Loading…
Cancel
Save