spotify-player icon indicating copy to clipboard operation
spotify-player copied to clipboard

Sorting a playlist does not play songs in that order

Open ChristianPayne opened this issue 1 month ago • 1 comments

Describe the bug When sorting a playlist by most recently added and playing, it does not play the songs in the sorted order. After the first song is played, it stops playing like the playlist is over.

To Reproduce

  1. Go to a playlist.
  2. Sort by recently added (s D)
  3. Reverse sort to get the most recent (s r)
  4. Play the first song

Expected behaviour After playing the first song (the most recent) it should go to the second song in the list (the second most recent song).

Log and backtrace N/A - This isn't an error but more a behavior bug.

Screenshots N/A

Environment

  • OS: MacOS
  • Application version: 0.21.2
  • Application features: N/A (downloaded with brew)

Additional context

  • I would be interested in trying to tackle this as a first issue with some guidance. Looking to contribute to open source 👍🏻

ChristianPayne avatar Nov 20 '25 18:11 ChristianPayne

It doesn't even look like sorting is an option through the Spotify Web API. Client-side sorting is what I see as implemented right now.

To fix this "issue", which may be more of a limitation of the API, we would need to walk the playlist as we see it and play every song in the order we see it. That seems like an anti pattern from how Spotify works as well as a ton of extra work just for this one feature.

ChristianPayne avatar Nov 20 '25 19:11 ChristianPayne