The Free Software Media System - Server Backend & API
Fix random sorting
Shadowghost0a99a78ddcb8
diff --git a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs b/Jellyfin.Server.Implementations/Item/BaseItemRepository.csindex 3cb40fa9ec..c962979b17 100644--- a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs+++ b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs@@ -304,7 +304,7 @@ public sealed class BaseItemRepository}dbQuery = ApplyQueryPaging(dbQuery, filter);- dbQuery = ApplyNavigations(dbQuery, filter).AsSplitQuery();+ dbQuery = ApplyNavigations(dbQuery, filter);result.Items = dbQuery.AsEnumerable().Where(e => e is not null).Select(w => DeserializeBaseItem(w, filter.SkipDeserialization)).Where(dto => dto is not null).ToArray()!;result.StartIndex = filter.StartIndex ?? 0;