Teradata interview question

how to do a sorting.