add treesort