pecking order
pecking order {n.}
The way people are ranked in relation to each other (for honor, privilege, or power); status classification; hierarchy.
After the president was in office several months, his staff developed a pecking order.
Categories:
Source: A Dictionary of American Idioms