Soliton cellular automaton, Toda molecule equation and sorting algorithm