Domanda di colloquio di Bentley Systems

How would you implement a sorting algorithm?