Title: Incorrect sort order when using tab completion and listing items · Issue #19736 · PowerShell/PowerShell · GitHub
Open Graph Title: Incorrect sort order when using tab completion and listing items · Issue #19736 · PowerShell/PowerShell
X Title: Incorrect sort order when using tab completion and listing items · Issue #19736 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/19736
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect sort order when using tab completion and listing items","articleBody":"### Prerequisites\r\n\r\n- [X] Write a descriptive title.\r\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- [X] Search the existing issues.\r\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://docs.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\r\n\r\n### Steps to reproduce\r\n\r\nI am inside a directory that looks as follows. Notice how it's listing out files in the incorrect order! This applies to tab completion as well and the \"broken\" items will be completed before the correct items. There must be a sort-order bug someplace...\r\n```\r\nMode LastWriteTime Length Name\r\n---- ------------- ------ ----\r\n-a--- 5/29/2023 5:26 AM 6060 check_cmake_consistency_config.py \u003c-- broken; wrong order\r\n-a--- 5/29/2023 5:26 AM 14928 check_cmake_consistency.py\r\n-a--- 5/29/2023 5:26 AM 5119 check_deprecated.py\r\n-a--- 5/29/2023 5:26 AM 6025 check_descriptions.py\r\n-a--- 5/29/2023 5:26 AM 2147 check_header_duplicate.py\r\n-a--- 5/29/2023 5:26 AM 15793 check_licenses.py\r\n-a--- 5/29/2023 5:26 AM 3792 check_mypy_config.py \u003c-- broken; wrong order\r\n-a--- 5/29/2023 5:26 AM 2908 check_mypy.py\r\n-a--- 5/29/2023 5:26 AM 13648 check_spelling_c_config.py \u003c-- broken; wrong order\r\n-a--- 5/29/2023 5:26 AM 23475 check_spelling.py\r\n-a--- 5/29/2023 5:26 AM 2524 check_unused_defines.py\r\n```\r\n\r\n### Expected behavior\r\n\r\n```console\r\nMode LastWriteTime Length Name\r\n---- ------------- ------ ----\r\n-a--- 5/29/2023 5:26 AM 14928 check_cmake_consistency.py\r\n-a--- 5/29/2023 5:26 AM 6060 check_cmake_consistency_config.py\r\n-a--- 5/29/2023 5:26 AM 5119 check_deprecated.py\r\n-a--- 5/29/2023 5:26 AM 6025 check_descriptions.py\r\n-a--- 5/29/2023 5:26 AM 2147 check_header_duplicate.py\r\n-a--- 5/29/2023 5:26 AM 15793 check_licenses.py\r\n-a--- 5/29/2023 5:26 AM 2908 check_mypy.py\r\n-a--- 5/29/2023 5:26 AM 3792 check_mypy_config.py\r\n-a--- 5/29/2023 5:26 AM 23475 check_spelling.py\r\n-a--- 5/29/2023 5:26 AM 13648 check_spelling_c_config.py\r\n-a--- 5/29/2023 5:26 AM 2524 check_unused_defines.py\r\n```\r\n\r\n### Actual behavior\r\n\r\n```console\r\nMode LastWriteTime Length Name\r\n---- ------------- ------ ----\r\n-a--- 5/29/2023 5:26 AM 6060 check_cmake_consistency_config.py \u003c-- broken; wrong order\r\n-a--- 5/29/2023 5:26 AM 14928 check_cmake_consistency.py\r\n-a--- 5/29/2023 5:26 AM 5119 check_deprecated.py\r\n-a--- 5/29/2023 5:26 AM 6025 check_descriptions.py\r\n-a--- 5/29/2023 5:26 AM 2147 check_header_duplicate.py\r\n-a--- 5/29/2023 5:26 AM 15793 check_licenses.py\r\n-a--- 5/29/2023 5:26 AM 3792 check_mypy_config.py \u003c-- broken; wrong order\r\n-a--- 5/29/2023 5:26 AM 2908 check_mypy.py\r\n-a--- 5/29/2023 5:26 AM 13648 check_spelling_c_config.py \u003c-- broken; wrong order\r\n-a--- 5/29/2023 5:26 AM 23475 check_spelling.py\r\n-a--- 5/29/2023 5:26 AM 2524 check_unused_defines.py\r\n```\r\n\r\n\r\n### Error details\r\n\r\n_No response_\r\n\r\n### Environment data\r\n\r\n```powershell\r\nName Value\r\n---- -----\r\nPSVersion 7.3.4\r\nPSEdition Core\r\nGitCommitId 7.3.4\r\nOS Microsoft Windows 10.0.22621\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n\r\n\r\n\r\n### Visuals\r\n\r\n_No response_","author":{"url":"https://github.com/rboxman","@type":"Person","name":"rboxman"},"datePublished":"2023-06-02T23:40:53Z","url":"https://github.com/PowerShell/PowerShell/issues/19736"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:62f18458-fb20-52e1-4a80-d403dd043ee6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ACDC:11BFC:2832997:38101B0:6AFD51E2 |
| html-safe-nonce | 66ff01b1dd6f94f4e1341595f13a6a3b183d27f44221aad5531a0163c598c110 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0RDOjExQkZDOjI4MzI5OTc6MzgxMDFCMDo2QUZENTFFMiIsInZpc2l0b3JfaWQiOiIyNjY2OTQ4ODgwNDEwNDMxOTcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | afcef024da59e67e5c1aeca900cbda83a0d7bb518dc307bdf6abb61464d7ea4f |
| hovercard-subject-tag | issue:1738950712 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/19736/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ac4d0a62d607c120166b1fbbfb22ac04a7dad807c539a3c6fb61abe94b791471/PowerShell/PowerShell/issues/19736 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ac4d0a62d607c120166b1fbbfb22ac04a7dad807c539a3c6fb61abe94b791471/PowerShell/PowerShell/issues/19736 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rboxman |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width