Commit 6fa52b62 authored by Kedar A.'s avatar Kedar A. 💻

commented sorting of graph nodes

parent 9efda621
......@@ -59,15 +59,15 @@
return d.children && d.children.length > 0 ? d.children : null;
});
// sort the tree according to the node names
function sortTree() {
tree.sort(function(a, b) {
return b.name.toLowerCase() < a.name.toLowerCase() ? 1 : -1;
});
}
// // sort the tree according to the node names
// function sortTree() {
// tree.sort(function(a, b) {
// return b.name.toLowerCase() < a.name.toLowerCase() ? 1 : -1;
// });
// }
// Sort the tree initially incase the JSON isn't in a sorted order.
sortTree();
// // Sort the tree initially incase the JSON isn't in a sorted order.
// sortTree();
// TODO: Pan function, can be better implemented.
function pan(domNode, direction) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment