Well, Franky was always breathing up Sanji's neck.
When it comes to combat abilities Franky always had most stats above Sanji.
However, Franky has been kept out of fights mostly, just like Robin.
It's not a coincidence, if Oda unleashes those two, they can easily overshadow Sanji.