Fix ordering on jstree

JSON tree is ordered by lft field but not the tree_id field. This should be lft first then tree_id.