Roger Federer has moved into the second spot among all-time weeks ranked No. 1.