diff --git a/src/tree/sort.ts b/src/tree/sort.ts index 7534375..219c83f 100644 --- a/src/tree/sort.ts +++ b/src/tree/sort.ts @@ -26,7 +26,7 @@ export function getCompareFn(sortSetting: SortSetting | null | undefined): ((a: } function compareLabel(a: TreeNode, b: TreeNode): number { - return a.info.label.localeCompare(b.info.label); + return a.info.label.localeCompare(b.info.label, undefined, { numeric: true }); } function compareLocation(a: TreeNode, b: TreeNode): number {