means that
people naturally tend to seek the company of others with similar interests, habits or dispositions.
When equals most easily mix together; people tend to seek the company of those who share common interests., the saying “Like will to like” is appropriate.