microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.61k stars 28.67k forks source link

sorting files should be correct #218423

Closed tyeth closed 2 months ago

tyeth commented 2 months ago

Type: Bug

If I have four files in a folder then they show mostly in order (alphabetical), but not the bmp3xx. Order shows as follows:

bme280.py bme680.py bmp3xx.py bmp280.py

Clearly the bmp sensor files should be in reverse, 3 is incorrectly sorted before 2, probably some artifact of the x's being used for encoding with \x2F for example.

VS Code version: Code - Insiders 1.91.0-insider (4580ba51fe1914ca29916f829adb35930089b013, 2024-06-25T15:29:07.211Z) OS version: Windows_NT x64 10.0.26120 Modes:

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2803)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|31.73GB (16.54GB free)| |Process Argv|--crash-reporter-id d7fc61b6-5fea-46f9-8100-b1286f2d3d11| |Screen Reader|no| |VM|0%|
Extensions (50) Extension|Author (truncated)|Version ---|---|--- pascal|ale|9.8.0 teleplot|ale|1.1.3 berry|ber|0.1.1 vscode-innosetup|cho|1.9.2 vscode-eslint|dba|3.0.10 copilot|Git|1.207.0 copilot-chat|Git|0.17.2024062601 vscode-github-actions|git|0.26.3 vscode-pull-request-github|Git|0.90.0 vscode-rdbg|Koi|0.2.2 vscode-lottie|lot|1.0.5 vscode-docker|ms-|1.29.1 csharp|ms-|2.34.12 vscode-dotnet-runtime|ms-|2.0.7 autopep8|ms-|2024.1.11501016 black-formatter|ms-|2024.3.11501016 debugpy|ms-|2024.6.0 pylint|ms-|2023.11.13481007 python|ms-|2024.9.2024062601 vscode-pylance|ms-|2024.6.1 jupyter|ms-|2024.5.0 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.18 vscode-jupyter-cell-tags|ms-|0.1.9 vscode-jupyter-slideshow|ms-|0.1.6 remote-containers|ms-|0.374.0 remote-ssh|ms-|0.113.2024062515 remote-ssh-edit|ms-|0.86.0 remote-wsl|ms-|0.88.2 cmake-tools|ms-|1.18.42 cpptools|ms-|1.21.0 cpptools-extension-pack|ms-|1.3.0 powershell|ms-|2024.3.2 remote-explorer|ms-|0.5.2024061309 remote-server|ms-|1.6.2024061709 vscode-serial-monitor|ms-|0.12.0 vsliveshare|ms-|1.0.5932 vscode-nanoframework|nan|1.0.165 pico-w-go|pau|3.8.2 proto|pet|0.0.4 platformio-ide|pla|3.3.3 vscode-protolint|ple|0.8.0 sqlite-viewer|qwt|0.6.2 polaris-for-vscode|Sho|0.9.8 ruby-extensions-pack|Sho|0.1.9 ruby-lsp|Sho|0.7.5 sorbet-vscode-extension|sor|0.3.35 cmake|twx|0.0.17 wokwi-vscode|Wok|2.5.1 clang-format|xav|1.9.0 (2 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 vsaa593:30376534 py29gd2263:31024238 c4g48928:30535728 2i9eh265:30646982 962ge761:30841072 pythongtdpath:30726887 welcomedialog:30812478 pythonnoceb:30776497 asynctok:30898717 dsvsc013:30777762 dsvsc014:30777825 dsvsc015:30821418 pythonregdiag2:30926734 pythonmypyd1:30859725 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30870582 dsvsc016:30879898 dsvsc017:30880771 dsvsc018:30880772 cppperfnew:30980852 pythonait:30973460 jchc7451:31067543 chatpanelt:31014475 g316j359:31013175 a69g1124:31018687 dvdeprecation:31040973 dwnewjupytercf:31046870 2f103344:31071589 nb_pri_only:31057983 nativerepl1:31071684 pythonrstrctxt:31083681 ```
tyeth commented 2 months ago

image

gjsjohnmurray commented 2 months ago

Related meta-issue #27286

lramos15 commented 2 months ago

Try playing around with this setting and let me know if none of those work

Image

tyeth commented 2 months ago

Sorry haven't got access to the machine now. I'll try and come back to this, but it should be an easy recreation. I'm on UK English if that helps narrow anything down.

lramos15 commented 2 months ago

Yeah with setting set to unicode I see

Image

tyeth commented 2 months ago

Aha, good deduction/guess! Emojis for the win then I suppose...

On Wed, 26 Jun 2024, 19:25 Logan Ramos, @.***> wrote:

Yeah with setting set to unicode I see

image.png (view on web) https://github.com/user-attachments/assets/053861c6-5d43-4003-8c1b-c6bf36a67002

— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode/issues/218423#issuecomment-2192376860, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTBZ47NIE3WI3LBKR3RHBDZJMBQJAVCNFSM6AAAAABJ6HP46WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJSGM3TMOBWGA . You are receiving this because you authored the thread.Message ID: @.***>

tyeth commented 2 months ago

Oh that's a shame, should I retitle "Default sorting isn't predictable" and reopen or create a new issue. I have no user setting nor workspace setting etc, so would expect the default to be unicode or something close to alphanumeric.

On Wed, 26 Jun 2024, 19:36 Logan Ramos, @.***> wrote:

Closed #218423 https://github.com/microsoft/vscode/issues/218423 as not planned.

— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode/issues/218423#event-13302733820, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTBZ43OSHT66QFGR5G6L5LZJMC4FAVCNFSM6AAAAABJ6HP46WVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGMYDENZTGM4DEMA . You are receiving this because you authored the thread.Message ID: @.***>

lramos15 commented 2 months ago

I've filed https://github.com/microsoft/vscode/issues/218530 around changing the default