From 66cdcb759beb6950f74e26e9de5f171e5c49f4f7 Mon Sep 17 00:00:00 2001 From: alexwl Date: Sun, 16 Feb 2020 13:37:08 +0300 Subject: Update jstree to 3.3.9 --- javascript/app/components/file-tree.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'javascript/app/components') diff --git a/javascript/app/components/file-tree.js b/javascript/app/components/file-tree.js index 7c5e112..f78ba1d 100644 --- a/javascript/app/components/file-tree.js +++ b/javascript/app/components/file-tree.js @@ -70,11 +70,11 @@ export default Ember.Component.extend({ const node1 = this.get_node(a).data; const node2 = this.get_node(b).data; if(component.get("sortType") === "alphabetical") { - return node1.name > node2.name; + return node1.name.localeCompare(node2.name); } else { const extendedName1 = (node1.tag === "Dir" ? "0" : "1") + fileExtension(node1.name) + node1.name; const extendedName2 = (node2.tag === "Dir" ? "0" : "1") + fileExtension(node2.name) + node2.name; - return extendedName1 > extendedName2; + return extendedName1.localeCompare(extendedName2); } } }); -- cgit v1.2.3