Skip to content

fix: when sorting by track, disc number is not considered#117

Open
melopepo wants to merge 1 commit intokoel:masterfrom
melopepo:patch-1
Open

fix: when sorting by track, disc number is not considered#117
melopepo wants to merge 1 commit intokoel:masterfrom
melopepo:patch-1

Conversation

@melopepo
Copy link

When sorting songs by "track", we currently ignore the disc number. This means if there's an album with multiple discs, it will be sorted as:

disc1 track1
disc2 track1
disc1 track2
disc2 track2
disc1 track3
disc2 track3

Instead it makes more sense to sort as:

disc1 track1
disc1 track2
disc1 track3
disc2 track1
disc2 track2
disc2 track3

The proposed change adds the disc number before the track number (and also prefix track numbers with zeros to ensure alphabetical order is consistent with numerical order)

I haven't been able to setup the project to build locally, so this needs a test still.

Thanks for making this great project!

When sorting songs by "track", we currently ignore the disc number. This means if there's an album with multiple discs, it will be sorted as:

```
disc1 track1
disc2 track1
disc1 track2
disc2 track2
disc1 track3
disc2 track3
```

Instead it makes more sense to sort as:

```
disc1 track1
disc1 track2
disc1 track3
disc2 track1
disc2 track2
disc2 track3
```

The proposed change adds the disc number before the track number (and also prefix track numbers with zeros to ensure alphabetical order is consistent with numerical order)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant