The Sun changes from having a polar ( bar magnet) field to a poloidal ( donut shaped) magnetic field every 11 years during a sunspot cycle, however, when the Sun changes back from a toroidal to a poloidal field, its polarity is reversed. It takes yet another cycle of 11 years for the solar North magnetic field to return to the North heliographic pole. The magnetic cycle is 22 years. By the way, between March 1957 and March 1958, the Sun had two magnetic poles of the same polarity in its northern and southern hemispheres. No one really understands why.