Roger Federer has Pete Sampras in his sights. (Anja Niedringhaus / AP)

It wasn’t perfection — he did drop a set for the first time this year at Wimbledon — but Roger Federer got his bearings and beat Mikhail Youzhny 6-7 (5-7), 6-3, 6-3, 6-3 for a berth in the quarterfinals.

“It was a tough first set to lose as I was playing well,” Federer said. He’ll play Jo-Wilfried Tsonga, the 12th seed from France, next. “Clearly losing the first set in a Slam is tough mentally. I was happy I played really well in the second set. It was getting dark...in the end the sun came up and it was perfect.”

Federer, the third seed, is trying to tie Pete Sampras’ record seven Wimbledon singles titles.