sort and remove duplicate actors