Figuring out peer group hierarchies in secondary school