-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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.sortOrder default doesn't work well for hashes #140915
Comments
If I understand that setting right, it would not treat |
We're using vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.ts Lines 684 to 701 in 3f1f126
unicode is just the built in < operator... not sure if there's a Collator config for what you want, I wouldn't want to hardcode something that only works in properly in english. It may just be a matter of not passing numeric: true , though that would break a.1.txt , a.2.txt , ... a.10.txt .
|
It's similar to #27759 and is called out in one of the comments (#27759 (comment)). But I think this issue is distinct as this is specifically related to the special number handling at the beginning of the file, not like the primary case that's called out there:
#27759 is more about how files with the same prefix are sorted relative to each other. |
I could see adding a case-insensitive Also worth exploring whether a non- |
@JacksonKearl not sure I want a case insensitive unicode variant though, I want the best of both worlds; the sorting today with fixes described in #27759 and hashes sorted logically. Not familiar with the code but it seems achievable. |
With this folder https://github.com/lunapaint/imagetestsuite/tree/main/png, it starts off alphabetical but gives up shortly after. It looks like the it's sorting by the number first such that 3, 20, 100 appear in the "correct" order. I suggest making one of the following changes:
Have been hitting this a decent amount recently, instead of a quick find via visual check I need to type out the first part of the hash to filter the explorer.
The text was updated successfully, but these errors were encountered: