Skip to content

Playlist order lost when opened while "Automatically sort playlist when inserting songs" is active #1690

@ahmetsait

Description

@ahmetsait
  • I have checked the FAQ for answers.
  • I have checked the Changelog that the issue is not already fixed.
  • I believe this issue is a bug, and not a general technical issue, question or feature requests that can be discussed on the forum.

Describe the bug
Playlists have a specific song order, which is immediately lost if the playlist is opened while "Automatically sort playlist when inserting songs" is checked.

To Reproduce

  1. Check "Automatically sort playlist when inserting songs" in settings.
  2. Open a playlist in Strawberry.
  3. Observe playlist being immediately sorted instead of being in its original playlist order.

System Information:

  • Operating system: Kubuntu 24.04 LTS
  • Strawberry Version: 1.0.23

Expected behavior
Sorting should probably not happen immediately when opening a playlist.

Additional context
Changing the checkbox text to something more accurate like "Always keep playlist sorted" is also an option, but I think there are a few fundamental issues with how Strawberry handles sorting:

  • Sorting a playlist by clicking on a column sorts only the visible playlist, other playlist tabs are not changed but columns confusingly indicate as if they are also sorted.
  • There is no way to go back to the original playlist order after sorting.

So I believe the correct way to fix all these UX issues is to have an "unsorted" (or "user sorted"?) state for a playlist. In this case opening a playlist would open in unsorted state with the original playlist order. Clicking a column will sort ascending, then descending and then clicking again would cycle back to unsorted state, which is shown by lack of any sort indicators on columns. The UI should probably prevent manual drag-drop sorting when the playlist is in "sorted" state. These also mean sorted-ness would need to be tracked per playlist.

An alternative and maybe a simpler idea is to implement a new column such as "Playlist Order" which is dynamically populated when playlist loads. This seems harder to discover for users though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions