RB Leipzig came back from 2-0 down to win 3-2 at home against Borussia Monchengladbach in the Bundesliga on Saturday night.
Sorloth headed in at the far post to complete a second-half comeback deep in stoppage time.
Gladbach had stunned Leipzig with two goals in the opening 19 minutes, one from in-form Jonas Hofmann after six minutes and the second a flick off Marcus Thuram's shoulder.
Exclusive: Spurs line up move for 'Austria's Peter Crouch', Jose safe for now
- Opiinion: Stones comes full circle and deserves every bit of credit he gets
- El Ghazi strikes early as Villa win at Leeds
The hosts, who were lucky not to concede a third goal before the break, shot out of the blocks in the second half and overran their opponents, scoring twice in nine minutes to level.
Christopher Nkunku tapped in a cutback in the 57th and Yussuf Poulsen then thundered in a shot that went in off the post to equalise in the 66th.
Substitute Emil Forsberg's 76th-minute free kick forced a sensational save out of Gladbach keeper Yann Sommer, who tipped it onto the crossbar as the visitors thought they had done enough for a draw.
But Sorloth beat his marker to head in the late winner and put Leipzig on 50 points, one place behind Bayern, who demolished Cologne 5-1.
VfL Wolfsburg's 2-0 win over Hertha Berlin kept them in third place on 45. Gladbach are in eighth place on 33.
Man Utd to pounce for £30m star bargain from Fiorentina - Euro Papers
Bayern grab vital away win at Leipzig
Five big potential transfers that need more hype – Inside Football