Danny Rowe scored late on against Southend to hand Stockport only their eighth win of the season.
Greg Tansey put the home side ahead from the penalty spot, after Sean Clohessy had fouled Rowe in the area.
Harry Crawford set up Kyle Asante, who fired in to pull the visitors level with just 10 minutes left.
Rowe found the winner in stoppage time when he got on the end of Anthony Elding's flick-on and handed County all three points.
Stockport County manager Ray Mathias told BBC Radio Manchester:
"It's the first time I've gone in and slaughtered a team that's won 2-1, as we can't afford to let teams in that late in the game.
"I've seen him (Danny Rowe) play in the reserves and it made my mind up about putting him in and he's gone out there and produced the goods.
"We've passed the ball superbly at times and overall I was really pleased with them."
Southend United manager Paul Sturrock told BBC Essex:
"Well after 45 minutes, it didn't look like we had any chance in this game.
"I just can't put my finger on why we started this game so badly.
"The whole 45 minutes of the first half was probably our worst performance of the season."
Stockport 27 Glennon 02 Lynch 12 Griffin 20 Rose 29 Brown 04 Turnbull 08 Tansey (Fisher - 88' ) 16 Wallace 18 Rowe 07 Vincent 09 Elding Substitutes 25 Ormson 06 Assoumani 17 Halls 32 Chusay 14 Poole 15 Mainwaring 19 Fisher Southend 01 Morris 02 Clohessy 05 Coughlan 12 Hall Booked 23 Barker 04 Stevens (Nesbitt - 46' ) 07 Grant 30 Woodyard 17 Soares (Asante - 76' Booked ) 20 Crawford 21 Sturrock Substitutes 24 Evans 25 Nesbitt 14 Bouzid 34 Smith 10 Corr 28 Asante