martpie / museeks

🎵 A simple, clean and cross-platform music player
https://museeks.io
MIT License
1.7k stars 200 forks source link

Tracks From Album Appear Out Of Order #777

Closed foglabs closed 2 weeks ago

foglabs commented 3 months ago

Screenshot 2024-08-05 at 3 18 23 PM

Attached screenshot shows tracks 15 and 16 (the bonus tracks) showing up at the beginning of this album, when these two tracks should be at the end of the album. Track metadata has the correct sequential track number values for these tracks. Clicking 'album' label to reverse order does not change the displayed track order. This is on macOS Ventura 13.4.1.

Thanks!

martpie commented 3 months ago

Hi @foglabs! I am aware of some weird sorting issues that can sometimes happen indeed. Can you share those files somewhere so I can repro the issue and investigate what goes wrong exactly?

foglabs commented 2 months ago

sure I can google drive them to you on your gmail if that works! thanks for getting back to me

martpie commented 2 months ago

Sounds perfect!

martpie commented 2 months ago

I finally could have a look. Basically, the two bonus tracks have been released in 2021, and the rest of the album in 2022, and when we sort by artist, we sort like the following:

artist [asc or desc] -> [year asc] -> [album asc] -> ...

The reason is that imho albums should be sorted from their oldest release date to the newest. Removing this constraint sort the tracks in the "right" (whatever that means) order, but we lose the sorting by year.

Screenshot 2024-09-04 at 17 21 35

martpie commented 2 months ago

Interestingly enough, Music (ex-iTunes) sort by Alphabetical order (minus "The"). In a way, that makes sense, as people are more susceptible to know the name of their album than their year of release 🤔

Screenshot 2024-09-04 at 17 25 51

foglabs commented 2 weeks ago

hmm, I would want the tracks within albums to be sorted by track number. in any case, thanks for responding to my issue!

martpie commented 2 weeks ago

I think this is a change that makes sense :)