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

Sorting algorithm is different than Files #176

Closed
nkkollaw opened this issue Nov 20, 2017 · 4 comments
Closed

Sorting algorithm is different than Files #176

nkkollaw opened this issue Nov 20, 2017 · 4 comments
Labels
Status: Invalid Not an issue or quality PR

Comments

@nkkollaw
Copy link

I have no idea where the sorting algorithm comes from--whether from the kernel, distro, or whatever, but when I list files using ls -lah the order is different than when sorting the same directory using Files.

It's very confusing.

@jeremypw
Copy link
Collaborator

Use the --group-directories-first flag with ls to sort the listing the same way as Files (when Files is sorting on filename). Use the --sort=size or -S, --sort=time or -t, --sort=extension or -X to match other Files sort settings.

@nkkollaw
Copy link
Author

I see. Thanks for your suggestions.

What I don't understand is that Ubuntu Server groups items together and sorts them alphabetically (so, dotfiles first).

So, I guess there's some configuration at the OS level, of is it Ubuntu Server just different?

@jeremypw
Copy link
Collaborator

Files has its own internal sorting algorithm and it is not user configurable at the moment. It sorts hidden files after normal files within each group.

@danirabbit
Copy link
Member

I'm +1 on making ls sorting match Files, but that would be something to file against the default settings package. I'm going to close this here since it can't be fixed in Terminal and move discussion to this new issue: elementary/default-settings#8

@danirabbit danirabbit added the Status: Invalid Not an issue or quality PR label Nov 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Invalid Not an issue or quality PR
Projects
None yet
Development

No branches or pull requests

3 participants