mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
[PR #7548] [MERGED] Fix album index sorts #11269
Labels
No labels
area:database
awaiting-feedback
backend
blocked
breaking change: web api
bug
build
ci
confirmed
discussion needed
dotnet future
downstream
duplicate
EFjellyfin.db
enhancement
feature
future
github-actions
good first issue
hdr
help wanted
invalid
investigation
librarydb
live-tv
lyrics
media playback
music
needs testing
nuget
performance
platform
pull-request
question
regression
release critical
requires-web
roadmap
security
security
stale
support
syncplay
ui & ux
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/jellyfin#11269
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/7548
Author: @1337joe
Created: 4/3/2022
Status: ✅ Merged
Merged: 4/4/2022
Merged by: @crobibero
Base:
release-10.8.z← Head:comparer-null-fix📝 Commits (1)
0674f84Add check so nulls will result in valid sort📊 Changes
4 files changed (+109 additions, -0 deletions)
View changed files
📝
Emby.Server.Implementations/Sorting/IndexNumberComparer.cs(+5 -0)📝
Emby.Server.Implementations/Sorting/ParentIndexNumberComparer.cs(+5 -0)➕
tests/Jellyfin.Server.Implementations.Tests/Sorting/IndexNumberComparerTests.cs(+49 -0)➕
tests/Jellyfin.Server.Implementations.Tests/Sorting/ParentIndexNumberComparerTests.cs(+50 -0)📄 Description
Given an album with over 16 tracks with null disc/track fields the sorters would fail because comparing null values tried to change order differently when called (a,b) vs (b,a).
Changes
Issues
Fixes #7533
Fixes jellyfin/jellyfin-web#3532
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.