Added example on how to sort a tree structure