Qlik interview question

How would I design a sorting algorithm.