Hearts secure third place having come back to win 3-1 against Hibernian after conceding an early goal scored by Drey Wright.