As others have pointed out there isn't really a social hierarchy among ants. Their a mostly decentralized autonomous colonies. The only real hierarchy is who gets to walk on top of others in a tunnel, which it usually the workers going back outside walking over the younger ones who aren't old enough to leave yet.