pecking order
the order of importance of the people in a group or an organization.
There's a clearly established pecking order in this office.
Cambridge English Idioms Dictionary