Credit: The Associated Press

Atlanta Braves shortstop Andrelton Simmons hops over Pittsburgh Pirates' Travis Snider to complete a double play on Chris Stewart in the fifth inning of the game on Wednesday, Aug. 20, 2014, in Pittsburgh.

PITTSBURGH — The Pittsburgh Pirates were looking for a way to break their seven-game losing skid.

They got a little help when Justin Upton dropped a routine fly ball to left-centerfield in the ninth which set the stage for Gaby Sanchez's game-winning sacrifice fly that capped a late-inning comeback as the Pittsburgh Pirates defeated the Atlanta Braves 3-2 on Wednesday night.

"We try to pride ourselves on not being surprised by success," manager Clint Hurdle said. "To get the two to tie it up then some help and to win, yeah, it's a real nice shot in the arm."