I am calling $('#main_table').treetable('sortBranch', 'TestId'); and receiving that error. When calling $('#main_table').treetable('collapseNode', 'TestId'); or the expandNode version it works perfectly fine. Was wondering what the issue could be? The full error:
Uncaught TypeError: Cannot read property 'sort' of undefined
at Tree.sortBranch (jquery.treetable.js:373)
at n.fn.init.sortBranch (jquery.treetable.js:605)
at n.fn.init.$.fn.treetable (jquery.treetable.js:617)
at HTMLButtonElement. ((index):2767)
at HTMLButtonElement.dispatch (jquery.min.js:3)
at HTMLButtonElement.r.handle (jquery.min.js:3)
Tree.sortBranch @ jquery.treetable.js:373
sortBranch @ jquery.treetable.js:605
$.fn.treetable @ jquery.treetable.js:617
(anonymous) @ (index):2767
dispatch @ jquery.min.js:3
r.handle @ jquery.min.js:3
I am calling $('#main_table').treetable('sortBranch', 'TestId'); and receiving that error. When calling $('#main_table').treetable('collapseNode', 'TestId'); or the expandNode version it works perfectly fine. Was wondering what the issue could be? The full error: Uncaught TypeError: Cannot read property 'sort' of undefined at Tree.sortBranch (jquery.treetable.js:373) at n.fn.init.sortBranch (jquery.treetable.js:605) at n.fn.init.$.fn.treetable (jquery.treetable.js:617) at HTMLButtonElement. ((index):2767)
at HTMLButtonElement.dispatch (jquery.min.js:3)
at HTMLButtonElement.r.handle (jquery.min.js:3)
Tree.sortBranch @ jquery.treetable.js:373
sortBranch @ jquery.treetable.js:605
$.fn.treetable @ jquery.treetable.js:617
(anonymous) @ (index):2767
dispatch @ jquery.min.js:3
r.handle @ jquery.min.js:3