Data.List.Unique
according to Postgres, duplicates still remain even after the sortUniq: https://gitlab.iscpif.fr/gargantext/haskell-gargantext/blob/dev-db-schema/src/Gargantext/Database/Schema/NodeNgrams.hs#L195 Maybe there is a concatenation of data somewhere that introduces duplicates, but I can not figure out how.