:: Ord a => [a] -> [a] -package:universum package:ghc-lib-parser

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