aboutsummaryrefslogtreecommitdiff
path: root/javascript/app
diff options
context:
space:
mode:
authoralexwl <alexey.a.kiryushin@gmail.com>2020-02-16 13:37:08 +0300
committeralexwl <alexey.a.kiryushin@gmail.com>2020-02-16 13:37:08 +0300
commit66cdcb759beb6950f74e26e9de5f171e5c49f4f7 (patch)
tree470aca79f8398a142056ab1ab0f919ba98361a66 /javascript/app
parent571363affc4b0c57323b7e033571d9c5af41c916 (diff)
Update jstree to 3.3.9
Diffstat (limited to 'javascript/app')
-rw-r--r--javascript/app/components/file-tree.js4
1 files changed, 2 insertions, 2 deletions
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);
}
}
});