Updated

Alex Gordon homered to lead the Kansas City Royals to a 5-4 victory over the Baltimore Orioles on Sunday.

Bruce Chen picked up his first victory since July 3. Chen (6-5), who was 0-3 in his past four starts, went five innings. He allowed three runs and seven hits with three walks and four strikeouts.

The Royals worked out of a bases-loaded, no out jam in the sixth inning.

Adam Jones led off with a single. Felix Pie reached on Chen's throwing error and Jake Fox also singled. Rookie reliever Kanekoa Texeira replaced Chen and got Josh Bell to ground into a double play with Jones scoring. Texeira struck out Cesar Izturis to end the inning.

Gordon led off the fourth inning with an opposite-field home run, his second homer in three games.

This was the final game for Juan Samuel as the Orioles interim manager. He finished with a 17-34 record. Buck Showalter will take over as the Orioles manager Tuesday.

Baltimore threatened in the ninth on Izturis' leadoff single and Julio Lugo reached on Wilson Betemit's throwing error.

Joakim Soria worked out of that jam with Nick Markakis grounding into a double play and Luke Scott grounding out to end the game.

Soria picked up his 29th save in 31 opportunities and has converted 22 straight save chances.

The Royals scored three runs in the first on four hits, including Billy Butler's RBI double. Betemit, who had two hits, singled home Butler. Jason Kendall also scored Jose Guillen's ground out.

Scott hit his 18th homer and Ty Wigginton hit his 17th homer for Baltimore. Markakis added an RBI double for the Orioles.

Orioles starter Kevin Millwood (2-11) allowed five runs and 11 hits in 5 2/3 innings.

Notes: RHP Gil Meche has opted against having season-ending surgery, but instead hopes to rehab and be used out of the bullpen. Meche was advised by doctors if he had surgery in August, he would also not pitch next year. He was 0-4 with a 6.66 ERA in nine starts before going on the disabled list.