A binary tree can be used to implement a simple but inefficient sorting algorithm. Here is a link from where you could learn to solve:
cslibrary.stanford.edu
cslibrary.stanford.edu