Novak Djokovic beat Roger Federer 6-4, 4-6, 6-2 in the Davidoff Swiss Indoors event final in Basel and became the fifth player in 2009 to win an ATP World Tour title after saving match points.