The ordering and ranking of individuals within society, also known as social stratification. Those at the top of the hierarchy are generally afforded more power, wealth, prestige, or privileges in a society. Hierarchies can be based on race, gender, class, caste, ethnicity, national affiliation, or other factors.