Here is one way to sort a list. Enter words into the input list, then press the 'sort' button to sort them alphabetically. The input loop builds a binary tree using separate lists of right and left pointers for the items in the input list; then the button walks through the tree, adding items to the output list.
This is probably kind of useless, but it was fun to make.