Qlik Interview Question

How would I design a sorting algorithm.