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

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