Microsoft interview question

How do you sort a tree? Program for binary search