diff --git a/CHANGELOG.md b/CHANGELOG.md index 32d46ee80..6df00b4cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Add the ability to pin columns ([#1781](https://github.com/sassoftware/vscode-sas-extension/pull/1781)) - Allow running R code files in SAS Content ([#1845](https://github.com/sassoftware/vscode-sas-extension/pull/1845)) +### Fixed + +- Fixed ordering of numbered filenames in SAS Content and SAS Server Panes ([#1847](https://github.com/sassoftware/vscode-sas-extension/pull/1847)) + ## [1.19.1] - 2026-04-01 ### Fixed diff --git a/client/src/components/ContentNavigator/utils.ts b/client/src/components/ContentNavigator/utils.ts index c456a347d..a42d4c658 100644 --- a/client/src/components/ContentNavigator/utils.ts +++ b/client/src/components/ContentNavigator/utils.ts @@ -135,7 +135,10 @@ export const sortedContentItems = (items: ContentItem[]) => } else if (!aIsDirectory && bIsDirectory) { return 1; } else { - return a.name.localeCompare(b.name); + return a.name.localeCompare(b.name, undefined, { + numeric: true, + sensitivity: "base", + }); } });