Chris Stewart remains on a mission. Patrik Berglund is sailing so smoothly these days he’s now bouncing pucks off teammate’s skates and into the net. And the Blues are still having a hard time losing with Jake Allen in net.

The Blues topped the San Jose Sharks for the second time four days Tuesday night, leading the entire way in a 4-2 victory before a crowd of 16,583 at Scottrade Center.

Stewart netted two goals, including an empty-netter, giving him 11 on the season. David Perron picked up his ninth of the year on a play in which a pass by Berglund went off Perron’s skate and into the net. And in his eighth game since being called up from Peoria, Chris Porter netted his first goal of the season.

“We played with a lot of heart,” Blues coach Ken Hitchcock said. “Other than when they got the power play there at the end, I thought we were really controlling it and playing well. They’re a huge team. I thought for what we had, and the way we managed it, we did a great job.”

A 5-on-3 power-play goal by San Jose’s Dan Boyle with 6 minutes, 28 seconds left in regulation made Porter’s goal, which gave the Blues a 3-1 lead with six seconds left in the second period, stand as the game-winner.

The Sharks had 1:56 remaining in 5-on-4 power-play time after Boyle’s goal, but the Blues’ penalty-killing unit kept the cushion before Stewart’s empty-netter. Allen made 39 saves on a season-high 41 shots against, including 19 in the second period. Allen’s revenge against San Jose — the only team to beat him to date — improved his record to 6-1 and was the first win at home for the goaltender.

“We blocked a lot of shots (22),” Allen said. “San Jose got a lot of shots through, but they could have had a lot more. That’s one of the keys of this team. That’s when we’re on top of our game.”

The victory also gave the Blues consecutive wins at home for the first time since January. The club will continue its three-game home stand Thursday against Phoenix.

Other than Boyle’s power-play goal, the only damage done by San Jose was a goal by Brent Burns, who is regularly a defenseman but was playing forward for the first time since 2004-05 in the minor leagues.