Adding in sort code for tree in project scanner