Set up treeSort. Looks pretty good from here.