Ashleigh Barty overcame a slow start to win her all-Australian semi-final against Daria Gavrilova 3-6 6-4 6-2 and advance to the final of the Sydney International.