Open in TheBrain

Average Complexity: O(n log n)