Skip to content

Sort options refactor for library pills#837

Open
udaign wants to merge 5 commits intotheovilardo:masterfrom
udaign:feat/sortoptions-refactor
Open

Sort options refactor for library pills#837
udaign wants to merge 5 commits intotheovilardo:masterfrom
udaign:feat/sortoptions-refactor

Conversation

@udaign
Copy link

@udaign udaign commented Jan 16, 2026

Summary

  • Improvements to sorting functionality in the Library tab - removed redundancies, improved efficiency, added functionality
  • Extra sort options added in various pills

Before vs After

Screenshot_20260117-035019 Screenshot_20260117-035109

Problem

Redundancy

For example: Name/Title - (A-Z); (Z-A) take space of two fields

Limitations in functionality

For example: If we select "Date Added" in the above picture, you couldn't choose between latest or oldest. You had to settle for the default latest. Similarly for most other options you had to stick with the defaults.

Missing sort options

Couldn't sort artists by number of songs, among a few other, which got added.

Solution

Redundancy

Solved by having a single parameter coupled with an ascending/descending arrow for each field, thus resolving redundancy and improving the efficiency. Users can now much easily scan all the available sort options without any redundancy.

Limitations in functionality

The ascending descending arrow is coupled with all supported fields, thus giving an ability to reverse the order much quicker without having to add extra options.

Missing sort options

Added additional sort options as follows:

  • Liked: Release Year
  • Songs: Release Year
  • Artist: Song Count
  • Folders: Date Modified (dysfunctional as of yet)

In addition to the library pills, a similar mechanism is transferred into playlists as well, bringing similar perks along with an additional "Release Year" sort option within a playlist.

…cending/descending order button to make sorting much more efficient while also unlocking new options.
…ked: Release Year, Songs: Release Year, Artist: Song Count, Folders: Date Modified; although the date modified for folders is dysfunctional as of now.
@theovilardo
Copy link
Owner

Hi! Thanks for your contribution .This is a good solution but the UI padding needs to be fixed and the LibraryActionRow composable is very delicate due to the animations in it so it needs to be modified carefully

@udaign
Copy link
Author

udaign commented Jan 18, 2026

Updated the padding, I don't see any problems in the animations as well. Please take a second look into all the changes though!

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

Comments