:: Ord a => [a] -> [a] -package:hledger-lib -package:fgl is:exact package:ghc-lib-parser

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