Sort/uniq the instances list.