The Sun, along with more than 1,500 other stars, journeyed from the middle of the Milky Way to its current position a few billion years ago.