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

Order songs by file name when browsing folders via Subsonic #1182

Open
grisumedia opened this issue Dec 9, 2024 · 2 comments
Open

Order songs by file name when browsing folders via Subsonic #1182

grisumedia opened this issue Dec 9, 2024 · 2 comments
Labels
6 - Ready for release Fix or feature is ready and will be included in the next release Enhancement

Comments

@grisumedia
Copy link

I'd like to use the Android app Symfonium using the Subsonic API. Unfortunately, the files in the folders are always ordered by their title. Symfonium does not allow to change the file order. As I understand from a ticket in the Symfonium support forum, the order comes from the server.
I would expect that the files are in the order of their name, not ordered by title.
Is it possible to fix that or to make that configurable?

Screenshot: Order in Symfonium
Screenshot: File names

@paulijar
Copy link
Collaborator

paulijar commented Dec 9, 2024

Yes, sorting by the file name would make sense when browsing by the folder structure, and that's actually what our web UI does on the Folders view. But the Subsonic API sorts in this case by the song title as you have noticed.

If, instead, the user is browsing by the metadata, then sorting by metadata is sensible. In that case, our current logic in Subsonic API is such that the primary sort key is the disk number, secondary key is track number, and tertiary key is the song title.

@grisumedia
Copy link
Author

I agree, different sortings in different views completely make sense. And, if it's possible, it would maybe also be nice so see the file names instead of the title when browsing by folders.

paulijar added a commit that referenced this issue Dec 29, 2024
…olders

Previously, the results were sorted by song title which was suboptimal for
example in case the folder contained songs of one album and file names were
prefixed with the track numbers. Or if the library had flat structure with
everything in one folder with file naming like "Artist Name - Song Name" or
similar.

Also, when browsing by meta data, the file name is now used as the third
sorting criterion after the disk number and track number.

refs #1182
@paulijar paulijar added the 6 - Ready for release Fix or feature is ready and will be included in the next release label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6 - Ready for release Fix or feature is ready and will be included in the next release Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants