Fixed the way the trees get sorted

Working on a new data set and fixing some problems along the way