Jannik Sinner thoroughly outplayed Daniil Medvedev in the the Miami Open semis and Grigor Dimitrov in the final to improve to 22-1 on the year and rise to a career-best world number two.