TA761: Fixed the sorting.