.NET 6 introduce some helpful new LINQ extension methods (Chunk, MaxBy and MinBy).
Chunk - https://docs.microsoft.com/dotnet/api/system.linq.enumerable.chunk
MaxBy - https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.maxby
MinBy - https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.minby