Cultural anthropology

Which comparison most carefully distinguishes class from caste as possible bases of social ranking?