aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/Item/OrderMapper.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2026-05-11 18:22:26 +0200
committerGitHub <noreply@github.com>2026-05-11 18:22:26 +0200
commit406aaabefd8499bfa1fb78547fd5da256625a647 (patch)
treeb8891f2e37d2341c76773e5f59f9a61f7a1a2adf /Jellyfin.Server.Implementations/Item/OrderMapper.cs
parentef64f19eac8520b1a9d8f3dccdad6cdd4bb98117 (diff)
parent149649a6cf2e9a5a556bb170c4fe79c39769aa75 (diff)
Use SortName when sorting by name (#16804)
* Use SortName when sorting by name * Preserve ordering in item values query
Diffstat (limited to 'Jellyfin.Server.Implementations/Item/OrderMapper.cs')
-rw-r--r--Jellyfin.Server.Implementations/Item/OrderMapper.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/Item/OrderMapper.cs b/Jellyfin.Server.Implementations/Item/OrderMapper.cs
index ada86c8b87..d327b218a9 100644
--- a/Jellyfin.Server.Implementations/Item/OrderMapper.cs
+++ b/Jellyfin.Server.Implementations/Item/OrderMapper.cs
@@ -48,9 +48,9 @@ public static class OrderMapper
(ItemSortBy.SeriesSortName, _) => e => e.SeriesName,
(ItemSortBy.Album, _) => e => e.Album,
(ItemSortBy.DateCreated, _) => e => e.DateCreated,
- (ItemSortBy.PremiereDate, _) => e => (e.PremiereDate ?? (e.ProductionYear.HasValue ? DateTime.MinValue.AddYears(e.ProductionYear.Value - 1) : null)),
+ (ItemSortBy.PremiereDate, _) => e => e.PremiereDate ?? (e.ProductionYear.HasValue ? DateTime.MinValue.AddYears(e.ProductionYear.Value - 1) : null),
(ItemSortBy.StartDate, _) => e => e.StartDate,
- (ItemSortBy.Name, _) => e => e.CleanName,
+ (ItemSortBy.Name, _) => e => e.SortName,
(ItemSortBy.CommunityRating, _) => e => e.CommunityRating,
(ItemSortBy.ProductionYear, _) => e => e.ProductionYear,
(ItemSortBy.CriticRating, _) => e => e.CriticRating,