sort types to remove dups