Pregunta de entrevista de Qlik

How would I design a sorting algorithm.