Long-term variability of the sun in the context of solar-analog stars