Adobe interview question

Write a function to sort a binary tree