Use natural sorting for explore nodes

This commit is contained in:
Steven Spungin 2019-06-12 07:14:08 -04:00
parent 91f8cf3c10
commit 835ef7f5bc

View File

@ -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 {