Changed object to be a vector of pairs so the insertion order is maintained when printing. Required some additional copies/sorts when comparing objects, but I don't see that being a common operation so I'm not terribly concerned about that performance impact.