Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort the source list in lexicographic order #861

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Conversation

8jmm3
Copy link

@8jmm3 8jmm3 commented Oct 4, 2024

I am using mpd as my back-end media player. It currently supplies a list of playlists as sources in a seemingly arbitrary order (map order). This makes choosing a source from the UI drop down quite cumbersome since they are in no obvious order (e.g. Rock, Pop, Alternative, Jazz, Classical). This is even more apparent since I have over 20 playlists.

This change implements lexicographic sorting of the source list so that the choices appear in a more logical order. (e.g. Alternative, Classical, Jazz, Pop, Rock).

@Drafteed
Copy link
Collaborator

Not sure about this change, since the default dropdown in the default HA card does not use additional sorting.

@sprocket-9
Copy link

This would be better implemented as a configuration option rather than changing the existing default sort order.

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.

3 participants