:: Ord a => [a] -> [a] -is:exact package:ghc

Remove duplicates but keep elements in order. O(n * log n)