The closer a planet orbits to the Sun, the faster its orbital velocity. Any comet or asteroid will accelerate as it approaches the Sun, and decelerate as it recedes from the Sun.