It's all a matter of reference frames. Center your reference frame on the earth, and voil!, the sun is revolving around the earth.
Of course, using such a reference frame isn't the most useful. It's much easier to model it with a reference frame at their center of mass. (which is inside the sun but not at it's center obviously)