Bug 473008 - kid3 does not sort multi disc album properly in the browser
Summary: kid3 does not sort multi disc album properly in the browser
Status: RESOLVED WORKSFORME
Alias: None
Product: kid3
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Mint (Ubuntu based) Other
: NOR minor
Target Milestone: ---
Assignee: Urs Fleisch
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-04 17:16 UTC by ksxminute
Modified: 2024-02-24 06:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ksxminute 2023-08-04 17:16:51 UTC
SUMMARY
I am a window user migrating to linux. I am moving from mp3tag to kid3. Also new to the bug report. This is similar to the BUG 120806 juk, but it's for kid3.

The left directory does not have an option to sort by disc number. Multi disc album doesn't get sorted property. I can sort by track number or album, but it doesn't recognize the disc number metadata. it can read the ID3v2's track number and disc number in the field.

STEPS TO REPRODUCE
1. Open kid3, and browse to a multi disc folder
2. Sort by track number or album does not sort it to proper disc number track number in a numeric order

OBSERVED RESULT
Sort by album - it does not sort the track in a numeric order
Sort by track in a multi disc album - it does not recognize the disc number, and sort 1 1 1 2 2 2 3 3 3, instead of 1 2 3 1 2 3 1 2 3.

EXPECTED RESULT
By clicking sort album, it should sort the disc number > track number


SOFTWARE/OS VERSIONS
Windows: Windows 10
Linux/KDE Plasma: Mint 21.2 Cinnamon 

ADDITIONAL INFORMATION
If the context menu has the sort by disc number, that'd do too. after importing the whole album, i can separate the disc by removing the other disc and work on each one individually.
Comment 1 Urs Fleisch 2023-08-30 12:54:10 UTC
Would this be solved if the disc number could be added as a column in the file list?
Comment 2 ksxminute 2023-08-30 16:38:42 UTC
yes. thank you.

also, is there a way to sort in different columns? like... in windows, if I hold shift/alt (depends on applications) and click on the sort, it would sort the album first, and then disc number, and then the track number. Sometimes, when i sort one item, and the other columns will get thrown in random orders.
Comment 3 Urs Fleisch 2023-08-31 09:10:57 UTC
Unfortunately, the sorting in the Qt file system model supports only a single column and order, so it will not be possible to sort by disc number and track number. The sort algorithm used does not seem to be stable, so sorting first by disc number and then by track number does not help either.

I use file names which contain the disc and the track number (e.g. "203 title.mp3" for a title with disc number 2 and track number 3) by using `%{discnumber.1}%{track} %{title}` as the format. This has the advantage that the files are also correctly sorted in applications which do not read the disc number.