Tracing the Sun’s family tree