As year-ending crescendos go in tennis, there are few finer finishes to a season than beating the world No 1.