Pregunta de entrevista de Bentley Systems

How would you implement a sorting algorithm?