:: Ord a => [a] -> [a] -package:extra -package:ghc -package:ghc-lib-parser package:sort -is:exact
The 
sort function implements a stable sorting algorithm. It is
a special case of 
sortBy, which allows the programmer to supply
their own comparison function.
Sort the list, discarding duplicates.