Brent Burns set up the game-tying goal, scored the winning goal, and threw in a thunderous hit of Anaheim’s Corey Perry in between for good measure in the Sharks’ 3-2 win over Anaheim on Thursday night at SAP Center.

San Jose jumped ahead of the Ducks for first place in the Pacific Division, with 99 points to Anaheim’s 97. The Ducks have played one fewer game. It’s the first time the Sharks have been alone in first place since Dec. 6, and they once trailed the Ducks by 13 points in mid-January.

Knotted at 1-1 after two periods, the teams traded scores in the third.

Anaheim took its first lead less than two minutes into the final frame. Jason Demers played the puck up the wall to Marty Havlat, who was pressured into a turnover by Ryan Getzlaf. The puck ended up on Corey Perry’s stick, and his shot went in off of Teemu Selanne at 1:42.

Burns, the Sharks’ best player all night, helped generate the second goal after Pavelski chipped it ahead to him in the neutral zone. His low saucer towards Frederik Anderson rebounded to Joe Thornton, who easily tallied the equalizer at 8:11.

Soon after that, Burns drilled Perry with a butt-check that seemed to shake up Perry along the wall. A scrum ensued, and helped elevate the nasty tone that was evident throughout the game between the two rivals.