What is hotter, the center of the earth or surface of the sun?

What is hotter, the center of the earth or surface of the sun?