Is mars closer to the sun or is earth?

Earth (3rd planet) is closer to the sun than Mars (4th planet).