Finished sorting utility

Added sort for treemaps into sorted sets.