Viewing the sun as an x-ray star