aboutsummaryrefslogtreecommitdiff
path: root/Emby.Naming
diff options
context:
space:
mode:
authorgnattu <gnattu@users.noreply.github.com>2024-09-18 21:22:33 +0800
committerGitHub <noreply@github.com>2024-09-18 07:22:33 -0600
commit901573473d0f1b2e6b852ba6f92110b9d7bb2c0f (patch)
tree425a734b64e3815145565772290d568db73423cf /Emby.Naming
parent8c8972f0b50d6e1db2341073681f29bb3b8a5ff5 (diff)
Sort by version name before resolution sorting (#12621)
Diffstat (limited to 'Emby.Naming')
-rw-r--r--Emby.Naming/Video/VideoListResolver.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Emby.Naming/Video/VideoListResolver.cs b/Emby.Naming/Video/VideoListResolver.cs
index 51f29cf08..12bc22a6a 100644
--- a/Emby.Naming/Video/VideoListResolver.cs
+++ b/Emby.Naming/Video/VideoListResolver.cs
@@ -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
{