David Robertson just wanted to keep the ball away. Instead, he watched Adam Dunn send it soaring into the stands.

Gordon Beckham #15 of the Chicago White Sox (L) celebrates with teammate Adam Dunn #44 after Dunn hit a two-run, game winning home run
Gordon Beckham #15 of the Chicago White Sox (L) celebrates with teammate Adam Dunn #44 after Dunn hit a two-run, game winning home run (Brian Kersey/Getty Images)
loading...

Just like that, one big swing ripped a win right out of the Yankees' grasp.

Dunn's two-run homer off Robertson in the ninth inning lifted the Chicago White Sox to a 6-5 victory over New York on Friday night.

Alexei Ramirez also went deep, and the White Sox came away with the win after wiping out an early three-run deficit and then rallying again in a game that lasted 3 hours, 52 minutes.

"It's a bad game," Robertson said. "It's frustrating because the team fought so hard today. We had a win there, three outs away and I let them down today. I didn't make enough quality pitches and it cost us the game."

Robertson got the final out in the eighth with two on and the Yankees up 5-4, but he couldn't hold it in the ninth.

Dayan Viciedo led off with a single, and Dunn then won it when he drove an 0-2 pitch well beyond the wall in right-center for his eighth home run. It was the 10th time he has ended a game by homering, and the first for him since July 4, 2013, against Baltimore.

"Really, I wasn't looking for anything," Dunn said. "It's 0-2. I figured he was probably trying to get a groundball. First of all, I didn't want to chase a bad pitch. He's got two really, really good pitches. You just try to swing at a strike."

Robertson was trying to throw a fastball down and away.

"It seemed like that one was just left up in the zone," he said. "It cut right up to his (barrel) and he put it 40 rows deep.

Dunn's drive made a winner of Daniel Webb (4-0), who pitched 1 1-3 scoreless innings, and gave Robertson (0-1) his first blown save in 10 chances. It also put the White Sox at .500 at 25-25.

Derek Jeter singled twice, walked and scored while tying former White Sox great Luis Aparicio for second in games played at shortstop with 2,583.

"I guess it is ironic that we're here," Jeter said. "It's hard to believe when you think about the history of the game that there is only one guy that's played more games. It's something I'm proud of. I take pride in doing my job and being available to play every day and to have your name in company with him is pretty special."

Ramirez and Adam Eaton each had three hits for Chicago and the White Sox won for the fourth time in five games.

The Yankees looked as though they might be on their way to an easy win when Brian McCann hit a three-run homer off Hector Noesi in the first. It was a good start for New York after managing just one baserunner in six innings against Chris Sale in Thursday's loss, but things quickly took a difficult turn.

The Yankees gave up unearned runs in the first and fourth, and Chicago took a 4-3 lead on Ramirez's two-run homer off Hiroki Kuroda in the fifth.

Scott Downs came on in the seventh after Noesi went six innings for Chicago and immediately gave up singles to Brian Roberts and a pinch-hitting Alfonso Soriano.

The White Sox brought in Jake Petricka and, after Brett Gardner laid down a sacrifice bunt, Jeter walked to load the bases.

Roberts then scored when Petricka bounced a pitch to Ellsbury, who then drove in Soriano with a sacrifice fly to center to give the Yankees a 5-4 lead.

Kuroda allowed four runs (two earned) and eight hits in 4 2-3 innings. He is 0-7 in 11 road starts since a win at Texas on July 25.

Noesi, a former Yankees prospect who got dealt to Seattle in the Michael Pineda trade in January 2012, allowed three runs and four hits. He walked five, but was in line for his first win since he beat Minnesota while with the Mariners on May 6, 2012, before the bullpen gave away the lead.

"I don't think about that," he said. "That's bad for me. This is a new year. I'm trying to get my first win and I will get it."

NOTES: Jeter and Aparicio trail Omar Vizquel (2,709) in games played at shortstop. ... The White Sox plan to honor Jeter before Sunday's game with a video tribute and commemorative gifts. ... Roberts came up limping after he fouled a pitch off his knee in the fourth. ... White Sox ace Chris Sale had no setbacks after a dominant return to the rotation on Thursday. Manager Robin Ventura said the left-hander was feeling "great" a day after retiring 18 of 19 batters. Sale had missed nearly five weeks because of a flexor strain in his pitching arm.

(© 2014 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)

More From New Jersey 101.5 FM