nubBy package:Cabal

Like ordNub and nubBy. Selects a key for each element and takes the nub based on that key.