The original post is correct; overtake on the right in the air, and left on the ground.
I believe it's so the pilot of the overtaken aircraft can see you more easily; as aircraft on the ground are likely to be in closer proximity than those in the air, so you don't appear out of the blue.