Bug 490164

Summary: Sorting tracks in Tracks view by album does not sort the tracks in each album by track number
Product: [Applications] Elisa Reporter: bastiaanmevius
Component: generalAssignee: Matthieu Gallien <matthieu_gallien>
Status: REPORTED ---    
Severity: normal CC: timedomainspindrift
Priority: NOR    
Version First Reported In: 24.05.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description bastiaanmevius 2024-07-12 09:33:47 UTC
SUMMARY
According to old bugs that were filed, the track view should be able to sort by album primary and track number secondary.
However, that secondary sorting is not happening. Actually, sorting on other tags (artist, year, or duration), influences the secondary sorting. This results in inconsistent Album track sorting in the Tracks view.

STEPS TO REPRODUCE
1. Go to the tracks view
2. Sort the tracks on title.
3. Sort the tracks on album.
4. Sort the tracks on duration.
5. Sort the tracks on album again.

OBSERVED RESULT
At step 3. Notice they are sorted alphabetically within each album.
At step 5. Notice the tracks are sorted on duration with each album.

EXPECTED RESULT
When sorting on album, I expect the tracks within each album to be sorted by track number of the disk they belong to.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.8-arch1-1 (64-bit)
Graphics Platform: Wayland