sort and uniq lists