fix alphabetical sorting in tree