From 835ef7f5bc97c89baec9c3160355bb95dc84806c Mon Sep 17 00:00:00 2001 From: Steven Spungin Date: Wed, 12 Jun 2019 07:14:08 -0400 Subject: [PATCH] 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 84a1f0fb..e4f1eb2f 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 {