Use Order() introduced in .NET 7 (#8923)

This commit is contained in:
Bond-009
2022-12-19 17:30:00 +01:00
committed by GitHub
parent b80b50437c
commit 497d8c4957
5 changed files with 9 additions and 9 deletions

View File

@@ -131,7 +131,7 @@ namespace Emby.Server.Implementations.IO
.OfType<Folder>()
.SelectMany(f => f.PhysicalLocations)
.Distinct(StringComparer.OrdinalIgnoreCase)
.OrderBy(i => i);
.Order();
foreach (var path in paths)
{

View File

@@ -1175,7 +1175,7 @@ namespace Emby.Server.Implementations.Library
}
})
.Where(i => i is not null)
.OrderBy(i => i)
.Order()
.ToArray(),
CollectionType = GetCollectionType(dir)

View File

@@ -529,7 +529,7 @@ namespace Emby.Server.Implementations.Library.Resolvers.Movies
}
return false;
}).OrderBy(i => i).ToList();
}).Order().ToList();
// If different video types were found, don't allow this
if (videoTypes.Distinct().Count() > 1)