Solar magnetic field reversal as seen at Ulysses