From 835ef7f5bc97c89baec9c3160355bb95dc84806c Mon Sep 17 00:00:00 2001 From: Steven Spungin Date: Wed, 12 Jun 2019 07:14:08 -0400 Subject: [PATCH 1/2] Use natural sorting for explore nodes --- src/store/explorer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { From 78de654a3379166d22fd6fbaea96f841132dca8d Mon Sep 17 00:00:00 2001 From: Steven Spungin Date: Thu, 13 Jun 2019 23:20:52 -0400 Subject: [PATCH 2/2] Fix comment spelling --- src/components/Toc.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {