diff --git a/src/components/Toc.vue b/src/components/Toc.vue index 0db98b6d4..1ce06ecee 100644 --- a/src/components/Toc.vue +++ b/src/components/Toc.vue @@ -60,7 +60,7 @@ export default { onClick(e); }); - // Change mask postion on scroll + // Change mask position on scroll const updateMaskY = () => { const scrollPosition = editorSvc.getScrollPosition(); if (scrollPosition) { diff --git a/src/store/explorer.js b/src/store/explorer.js index 84a1f0fb4..e4f1eb2f6 100644 --- a/src/store/explorer.js +++ b/src/store/explorer.js @@ -14,7 +14,7 @@ function debounceAction(action, wait) { }; } -const collator = new Intl.Collator(undefined, { sensitivity: 'base' }); +const collator = new Intl.Collator(undefined, { sensitivity: 'base', numeric: true }); const compare = (node1, node2) => collator.compare(node1.item.name, node2.item.name); class Node {