aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2025-01-19 12:29:14 +0000
committerJPVenson <github@jpb.email>2025-01-19 12:29:14 +0000
commitcd75df65213f2a4d8ae3f56773ae29a6ec3532a8 (patch)
treeb64455fddc20cb4972cbb3e40004a1ddc38eff83
parent56a4aa180b05e57054da7ca9bce432446efa7b3c (diff)
Applied review comments
-rw-r--r--Jellyfin.Server.Implementations/Item/BaseItemRepository.cs8
-rw-r--r--tests/Jellyfin.Server.Integration.Tests/Controllers/LibraryStructureControllerTests.cs2
2 files changed, 2 insertions, 8 deletions
diff --git a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
index 970eaa3ba..a4e3f75ec 100644
--- a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
+++ b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
@@ -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)
{
diff --git a/tests/Jellyfin.Server.Integration.Tests/Controllers/LibraryStructureControllerTests.cs b/tests/Jellyfin.Server.Integration.Tests/Controllers/LibraryStructureControllerTests.cs
index e7166d424..0f318f5a0 100644
--- a/tests/Jellyfin.Server.Integration.Tests/Controllers/LibraryStructureControllerTests.cs
+++ b/tests/Jellyfin.Server.Integration.Tests/Controllers/LibraryStructureControllerTests.cs
@@ -62,7 +62,7 @@ public sealed class LibraryStructureControllerTests : IClassFixture<JellyfinAppl
}
[Fact]
- [Priority(-2)]
+ [Priority(0)]
public async Task UpdateLibraryOptions_Valid_Success()
{
var client = _factory.CreateClient();