fixed #82, added basic ascending ordering to getTree method