Rory McIlroy has ended the year as world No.1 for the first time with a comfortable lead at the top of the official rankings over Luke Donald and Tiger Woods.