For Ryan Howard, manager Ryne Sandberg knew it was just a matter of time.

Little did Sandberg realize that Howard was going to hit his way out of a slump and then back into one before delivering the winning hit all in the same game.

Given the Phillies’ penchant for playing extra-inning games -- specifically games that last at least 14 innings -- the ebbs and flows of Howard’s season at the plate were on display during the 2-1 victory over the Houston Astros in 15 innings on Tuesday night/Wednesday morning.

“He was swinging the bat well,” Sandberg said. “I think it was just a matter of time.”

Howard homered to lead off the second inning for what appeared to be the game-winner for starting pitcher Kyle Kendrick. After retiring the first 10 he faced and recording 13 outs on ground balls, Kendrick finally allowed a run in the seventh inning.

By that point, though, the Phillies and Astros weren’t even halfway finished. The Phils’ bullpen held the Astros scoreless for eight innings while the team waited for Howard to come through again, barely squeaking a single through the infield shift to send the winning run home from second base with two outs.