The top-seeded Federer broke Djokovic's serve early in the first, and twice in the deciding third set to cruise to victory in under two hours.

Basel-born Federer was watched courtside by his parents, his wife Mirka and their 15-month-old twin daughters Myla and Charlene.

He won three straight Swiss Indoors titles from 2006-08 before Djokovic broke the streak in last year's final.

Federer's 65th career singles title lifted him above Pete Sampras into outright fourth position on the all-time list in the modern era. Jimmy Connors leads with 109.

“Results-wise, Roger is the best player ever to play the game,” Djokovic said in an on-court interview.

Federer is 4-4 in finals this year after winning titles at the Australian Open, Cincinnati Masters and two weeks ago at the Stockholm Open.

The 29-year-old Swiss improved to 12-6 lifetime against Djokovic, and 3-1 this year. His only defeat to the 23-year-old Serb this season came in a five-set US Open semifinal match where he wasted two match points.

In Bali, Ana Ivanovic ended the season on a positive note by defeating Alisa Kleybanova 6-2, 7-6 in the final of the Tournament of Champions in Bali on Sunday.

Ivanovic weathered some heavy hitting from her Russian opponent before breaking to lead 4-2 and won the final 11 points of the first set.

Kleybanova broke to lead 2-1 in the second, but Ivanovic immediately broke back with a stunning winner down the line, and her resilience under pressure, together with some fine serving, continued to give her the advantage.

Ivanovic faced a crisis at 5-5, but saved two break points and went on to claim victory with her eighth ace of the match.

The last few weeks have shown a remarkable turnaround for the Serbian former world No.1, who has struggled since winning the French Open in 2008.

Ivanovic saw her ranking sink to 65 in July but her fortunes began to improve in August when she reached the semifinals in Cincinnati before retiring against Kim Clijsters with an injury.

She also won three matches at the US Open before losing to Clijsters.

The Serb defeated Elena Dementieva to reach the quarterfinals of the China Open, before winning her first title in two years in Linz. With her victory against Kleybanova she will rise to 17, her highest ranking in more than a year.

In Valencia, Spain, Spaniard David Ferrer came through a tough battle with his compatriot Marcel Granollers to win the Valencia Open 7-5, 6-3 here on Sunday, which leaves him on the verge of qualifying for the ATP World Tour Finals.

Ferrer had won their only previous meeting in Barcelona earlier this year and again had the edge to bring to an end a dream week for Granollers who had only made the tournament as a lucky loser.

The victory gave 28-year-old Ferrer 200 more points he needed to reach the World Tour Finals in London.

Ranked eighth in the world, Ferrer has had a less than spectacular season, where the highlights were reaching the finals in Rome, Buenos Aires and Acapulco - where he won - and his chances of playing in London appeared slim.

Granollers started the stronger forcing his first break points on Ferrer's second service game but was unable to capitalize.

The Barcelona born player was looking to attack at the net where he has shown good reactions throughout the tournament.

It was Ferrer raising his game that managed the first break to go 5-3 up but Granollers responded to level the match at 5-5.

There was little to pick between the two but Ferrer came through 7-5 winning a disputed call on his advantage at deuce.

In the second set Granollers' confidence dropped as Ferrer took control with excellent groundstrokes and he stormed into a 3-0 lead. Granollers managed to hold on to win his next service games but went down 6-3.