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

Extension-aware sorting #97765

Closed
fabiospampinato opened this issue May 14, 2020 · 1 comment
Closed

Extension-aware sorting #97765

fabiospampinato opened this issue May 14, 2020 · 1 comment
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) file-explorer Explorer widget issues

Comments

@fabiospampinato
Copy link
Contributor

fabiospampinato commented May 14, 2020

This is the usual sort order the following file names will be sorted with:

foo
foo_bar
foo_baz

The issue is that once those file names get an extension, and the extension is the same, the order gets messed up because unfortunately _ comes before .:

foo_bar.ts
foo_baz.ts
foo.ts

To make an analogy I think sorting file names should be like sorting people names, you sort by name first and then by surname (or vice versa), whatever the surname is it can't change the sort order people with different names will be in. Similarly file names should be sorted by their "base" name first and then by their extension:

foo.ts
foo_bar.ts
foo_baz.ts

I don't know if this makes sense to everybody, probably not given how this isn't the default already, but given how there are settings for customizing the sort order already maybe they could be expanded a bit to account for this too?

@isidorn
Copy link
Contributor

isidorn commented May 14, 2020

Dup of #27286 and #27759

@isidorn isidorn closed this as completed May 14, 2020
@isidorn isidorn added *duplicate Issue identified as a duplicate of another issue(s) file-explorer Explorer widget issues labels May 14, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jun 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) file-explorer Explorer widget issues
Projects
None yet
Development

No branches or pull requests

2 participants