Alex Gordon hit a two-run homer in the 12th inning and the Royals beat the Chicago White Sox 4-2 on Sunday for their sixth straight win, matching their season high.

With no outs and Jarrod Dyson on third in the 12th, the White Sox brought their infield in, but Gordon drove a Donnie Veal pitch over the wall in center. It was Dyson’s arm that kept the Royals in it late. The White Sox had a chance to win the game in the 10th, but Dyson threw out pinch runner Blake Tekotte at the plate to end the inning on a single up the middle by Alejandro De Aza. Winning has the Royals in a good mood.

“This is a lot of fun,” Gordon said. “We have a lot of guys that are playing well and picking each other up and just a good team right now.

The Royals are also back to .500 at 51-51 and have their best record this late in the season since 2003.