Sorting and RPN