Option to group directories first in the "Files" library view

Feature description

I’d like to suggest an option (for example, a toggle in the settings, disabled by default) to group/sort directories before music files in the “Files” library view (and possibly other relevant views as well).
This would be similar to the --group-directories-first behavior from GNU coreutils ls.

Problem solved

For users with heavily folder-tree-based library organization, mixing directories and audio files in a single alphabetical list can reduce navigation usability and make browsing less practical.
Grouping directories first would improve navigation and make the behavior more consistent with what users typically expect from graphical file explorers.

Brought benefits

  • Better usability of the “Files” view;
  • Faster navigation in large libraries;
  • More intuitive folder-tree browsing;
  • Behavior consistency with many file managers/file explorers;

Other application solutions

Many graphical file explorers group directories before files by default, while some provide a toggle for enabling/disabling this behavior.
GNU coreutils ls is an example of a tool that keeps the default mixed sorting behavior, but provides the --group-directories-first option for users who prefer it.

Device type

Phone

Additional description and context

I am also on the beta program, so I would be happy to provide feedback/testing if something like this is ever implemented.
Thanks for the great work on Symfonium. It has been an excellent solution for large cloud-based personal music libraries.

I searched existing feature requests

on

1 Like

Any so no news for a half of an year?:frowning:

The provided sort options cover the basic needs of this request.

Default sort is already alphabetical, folders-first:

Whereas Name sort is alphabetical, mixed view:

Cases not covered:

  • Reversing sort order doesn’t affect Default sort, so we cannot list reverse alphabetically (Z-A) and still have folders-first.

  • Non-alphabetical sort orders: these seem to be mixed-type views, with no option for folders-first.

Size sort (folder sizes not checked and treated as zero):

1 Like

Thank you for the detailed breakdown, that’s exactly what I was after. I can confirm my request is already covered by the “Default” sort.

I’m not sure whether it was added after I posted or was there all along (I do remember searching before submitting), but either way, thanks a lot for taking the time to lay it out so clearly.

1 Like

What server do you use? I am using emby and it’s mixing. I marked the folders, as you can see files and foldera are mixed.

I use only Local Files.

Try toggling the following setting and see if it makes any difference for you:

Settings → Advanced → Database → Use ASCII sort

(It is enabled for me, which seems to be the default.)

You are right! For local files it works well.
For emby server it’s mixed.
For plex server it works well too!
Use ASCII sort - is turned “on”.

So any comments?) IS it emby problem and i should fix it by myself?)

Not something I can answer myself.

This feature request is still open so I assume the dev will look into it when they have a chance.

It’s definitely related to emby though, since the sort is already correct for the other providers.

2 Likes

Sorry for the late answer, my library is on Google Drive. Just checked, “use ASCII sorting” is on. Works as intended here.

Good luck with Emby.

So problem persist, anybody to research it and make a fix?:slight_smile: