South African stocks ended sharply higher on Friday, booking their third straight day of gains, with miners among the top performers as commodity prices cruised higher.