Post sorting algorithm seems OK.