Fixed the way the trees get sorted
Merge pull request #135 from ivoflipse/labeling_pigs

Fixed the way the trees get sorted