aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2026-02-01 12:22:27 +0100
committerShadowghost <Ghost_of_Stone@web.de>2026-02-01 12:22:27 +0100
commit042385599f3c6ec703fdde8387a19e680c53cca9 (patch)
tree484f21561d8b1c87f5736486035f49dca0e73ad4 /Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
parent09a729effe1c0eeccd3bbc7482923b4d1cdabfc1 (diff)
Fix orderBy warnings
Diffstat (limited to 'Jellyfin.Server.Implementations/Item/BaseItemRepository.cs')
-rw-r--r--Jellyfin.Server.Implementations/Item/BaseItemRepository.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
index 778cedaecf..415f2b99cd 100644
--- a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
+++ b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
@@ -2044,7 +2044,7 @@ public sealed class BaseItemRepository
// query = query.DistinctBy(e => e.CleanValue);
return query.Select(e => e.ItemValue)
.GroupBy(e => e.CleanValue)
- .Select(e => e.First().Value)
+ .Select(e => e.OrderBy(v => v.Value).First().Value)
.ToArray();
}
@@ -3737,6 +3737,7 @@ public sealed class BaseItemRepository
Total = g.Count(),
Played = g.Count(isPlayed => isPlayed)
})
+ .OrderBy(_ => 1)
.FirstOrDefault();
return result is null ? (0, 0) : (result.Played, result.Total);