Dee Gordon's RBI single, his third hit of the game, was followed by Hanley Ramirez's two-run double with two out in the bottom of the eighth inning as the Dodgers beat the D-backs Saturday night, 5-2.