Teradata Interview Question

how to do a sorting.