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

Explorer sort order is not alphabetical #106115

Closed
dandohotaru opened this issue Sep 4, 2020 · 4 comments
Closed

Explorer sort order is not alphabetical #106115

dandohotaru opened this issue Sep 4, 2020 · 4 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@dandohotaru
Copy link

dandohotaru commented Sep 4, 2020

Issue Type: Bug

As far as I can tell, there are some issues with the sort order in the Explorer panel, at least when folders do have a "." (dot) in their names.

As is (notice that Core.Domain[.*] folders are not in sequence)

image

As expected:

image

In terms of settings
Settings > Features > Explorer > Sort Order: Default
the sort order is set to Default, so I would expect that files and folders to sort alphatically

VS Code version: Code 1.48.2 (a047975, 2020-08-25T10:13:11.295Z)
OS version: Windows_NT x64 10.0.14393

Extensions (1)
Extension Author (truncated) Version
markdown-all-in-one yzh 3.3.0
@vscodebot
Copy link

vscodebot bot commented Sep 4, 2020

@m9p909
Copy link

m9p909 commented Sep 4, 2020

It is a weird result, but I dont think it's a bug. Based on this explanation it seems that vscode ignores file extensions when sorting unless the names are the same. So what vs code is sorting by is

  • Core
  • Core
  • Core.Domain
  • Core.Queries
  • Shared
  • Shared

Your file manager is sorting by the entire length of the name including the extension, which gives a different result

Edit: Maybe this could be an option that is added to Sort Order

@dandohotaru
Copy link
Author

that would have been probably correct if the sorted targets were files,
but as a matter of fact those are folders,
and should not be treated as having an extension :)

@isidorn isidorn added the *duplicate Issue identified as a duplicate of another issue(s) label Sep 4, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 19, 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)
Projects
None yet
Development

No branches or pull requests

4 participants
@dandohotaru @isidorn @m9p909 and others