Ayr United beat Dundee 3-1 in Friday's cinch Championship game at Somerset Park to move four points clear at the top of the table.
Zak Rudden gave the Dark Blues an early lead but a double from in-form Dipo Akinyemi and a Jordan Houston goal turned things around.
Dundee had skipper Ryan Sweeney sent off for a second yellow card in stoppage time.