Merge pull request #1497 from Flamenco/fix_explorer_natural_sort
Use natural sorting for explorer file nodes.
This commit is contained in:
commit
f05b089485
@ -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);
|
const compare = (node1, node2) => collator.compare(node1.item.name, node2.item.name);
|
||||||
|
|
||||||
class Node {
|
class Node {
|
||||||
|
Loading…
Reference in New Issue
Block a user