What is the meaning of [Birds of a feather flock together]

People who are alike are often friends (usually used negatively)