diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2026-02-01 12:22:27 +0100 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2026-02-01 12:22:27 +0100 |
| commit | 042385599f3c6ec703fdde8387a19e680c53cca9 (patch) | |
| tree | 484f21561d8b1c87f5736486035f49dca0e73ad4 /Jellyfin.Server.Implementations/Item/BaseItemRepository.cs | |
| parent | 09a729effe1c0eeccd3bbc7482923b4d1cdabfc1 (diff) | |
Fix orderBy warnings
Diffstat (limited to 'Jellyfin.Server.Implementations/Item/BaseItemRepository.cs')
| -rw-r--r-- | Jellyfin.Server.Implementations/Item/BaseItemRepository.cs | 3 |
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); |
