Hearts allowed Aberdeen to take an early lead before recovering to win 2-1 at Tynecastle. Aberdeen took a deserved lead through Darren Mackie, but Hearts rallied with goals in first half stoppage time from Christian Nade and a 66th minute winner from Andy Driver.
Hearts are now third in the league as they battle for two Europa Cup places.
Jambos boss Csaba Laszlo was delighted by the win.
He said: "I must compliment my team; I don't know how many games they have come from behind to win a game.
"In my opinion, it was a good game, especially in the first half.
"Both teams showed good fighting spirit. You saw a good league game and two teams that want to finish in the top six."
Opposite number Jimmy Calderwood was disappointed the Dons could not build on that early lead.
He said: "I thought we started wonderfully well. I had been disappointed in our away form in the last five or six weeks.
"We were in the ascendancy and we scored a wonderful goal. It was great vision from Charlie and Darren has finished it on the volley.
"Thirty seconds before the break, we gave a goal away and they took a massive lift from that.
"In the second half, Michael Stewart and Bruno Aguiar started playing and, for the first 20 minutes, we were struggling.
"I thought we defended quite well and then we gave away a stupid goal away. Driver got in front of Charlie, who was ball watching, and it was 2-1."