remove duplicate
sort and use --global flag