Pecking Order

What does the idiom “pecking order” mean?

Definition: Hierarchy, rank of importance

Example: Courtney is below Suzanne in the pecking order, so if you need something done it’s better to ask Suzanne.