Ranking of different groups in society