Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Album with over 100 tracks ordered incorrectly #46

Closed
LukeZBaker opened this issue Feb 9, 2024 · 2 comments
Closed

Album with over 100 tracks ordered incorrectly #46

LukeZBaker opened this issue Feb 9, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@LukeZBaker
Copy link

Edge case I know, but if I create a playlist with an album with more than 100 tracks, it's ordered

01
02
03
04
05
06
07
08
09
10
100
101
102
...
109
11
110
111

@ludouzi ludouzi added the enhancement New feature or request label Feb 9, 2024
@ludouzi
Copy link
Collaborator

ludouzi commented Feb 9, 2024

The reason the track numbers are prefixed with '0' in the first place was to prevent the same issue with just 10 tracks. Doing it without having to prefix '00' instead will require a custom sorting method for strings. I'll see what I can do.

@ludouzi
Copy link
Collaborator

ludouzi commented Feb 9, 2024

Turns out this was even easier than expected.

If 6d8b551 doesn't take effect, you can reset the library settings page (Library->Settings->Reset Page) to load the new default.

Or to do it yourself without pulling the latest changes and rebuilding, change the sort script in the library settings page to:

%albumartist% - %year% - %album% - $num(%disc%,5) - $num(%track%,5) - %title%

@ludouzi ludouzi closed this as completed Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants