Skip to content

Persist sort order for starred artists, albums, and tracks#679

Open
thereisnotime wants to merge 1 commit into
eddyizm:developmentfrom
thereisnotime:feature/persist-starred-sort-order
Open

Persist sort order for starred artists, albums, and tracks#679
thereisnotime wants to merge 1 commit into
eddyizm:developmentfrom
thereisnotime:feature/persist-starred-sort-order

Conversation

@thereisnotime
Copy link
Copy Markdown

Summary

  • Saves the selected sort order to SharedPreferences whenever the user picks a sort option in the starred artists, albums, or tracks list pages
  • Restores the saved sort on next visit so the list comes up pre-sorted without requiring the user to re-select it each time
  • Three independent keys: starred_album_sort_order, starred_artist_sort_order, starred_track_sort_order

Related issue

Closes #496

Test plan

  • Go to starred albums, pick "Name" sort, leave, return — confirm it's still sorted by name
  • Go to starred artists, pick "Recently starred" sort, leave, return — confirm order is preserved
  • Go to starred tracks, sort by "Least recently starred", kill the app, reopen — confirm sort is remembered
  • Verify that other list pages (recently played, recently added, etc.) are unaffected

The sort selection on starred lists was reset every time the user
navigated away. Now the chosen sort order is persisted per section
(starred artists, starred albums, starred tracks) and restored
automatically when the list is opened.

Closes eddyizm#496
@thereisnotime thereisnotime force-pushed the feature/persist-starred-sort-order branch from 456bfd0 to 2b6672f Compare May 23, 2026 21:50
@eddyizm
Copy link
Copy Markdown
Owner

eddyizm commented May 25, 2026

Hi @thereisnotime Can you provide some screenshots with successful tests? Feel free to post your backend results as well.

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.

2 participants