Bentley Systems Interview Question

How would you implement a sorting algorithm?