Sort by version name before resolution sorting (#12621)

This commit is contained in:
gnattu
2024-09-18 21:22:33 +08:00
committed by GitHub
parent 8c8972f0b5
commit 901573473d
2 changed files with 42 additions and 1 deletions

View File

@@ -141,7 +141,9 @@ namespace Emby.Naming.Video
{
if (group.Key)
{
videos.InsertRange(0, group.OrderByDescending(x => x.Files[0].FileNameWithoutExtension.ToString(), new AlphanumericComparator()));
videos.InsertRange(0, group
.OrderByDescending(x => ResolutionRegex().Match(x.Files[0].FileNameWithoutExtension.ToString()).Value, new AlphanumericComparator())
.ThenBy(x => x.Files[0].FileNameWithoutExtension.ToString(), new AlphanumericComparator()));
}
else
{