Steve Ruiz recently noted that in many design tools a group of shapes would end up at a different position after you rotate them and then successively rotate them back.
The problem here is that the average center of the group — the point on which the group rotates — changes after the first rotation. Knowing this, the solution — first detailed on Twitter and later on his blog — is pretty straightforward …