change tree set and tree map interface to 'sorted'