Pergunta de entrevista da empresa Bentley Systems

How would you implement a sorting algorithm?