Andy Murray has retained the world No.1 ranking after Rafael Nadal's loss at the Rogers Cup.