Danny Mullen struck the winner as Dundee came from behind to beat Hearts 2-1 at Tynecastle and move off the bottom of the cinch Premiership table.
The home side looked on course to tighten their grip of third place when they led at the break through Ellis Simms.
But a Toby Sibbick own goal early in the second half brought the visitors back into it before they claimed victory in the 78th minute.