It was a key wicket, with de Swardt the lynchpin in South Africa’s recovery having compiled a hard-fought 64.
With his next delivery, the Kiwi debutant beat Dane Paterson for pace. The tailender misjudging the delivery as he swung wildly, sending the ball high into the air behind the stumps where it was gathered in the safe hands of Tom Latham.
It capped a terrific opening performance for the 22-year-old right armer, who finished the innings with four wickets for 59 runs of 18.2 overs. Rachin Ravindra – who dominated with the bat in the first test, scoring 240 runs in the first innings – was the other star bowler, taking three wickets for 33 runs off 21 overs.
South Africa had begun the day on 220/6, and were all out for 242.
O’Rourke could also join another rare hat-trick club; by securing the three wickets across two innings he would have what is known as a “complicated hat-trick”.
Only three test hat-tricks – by Courtney Walsh (Brisbane 1988), Merv Hughes (Perth, 1988) and Jermaine Lawson (Antigua, 2004) – have crossed between two innings of a test.
There have been 46 hat-tricks in men’s tests.