They both had basic COO. There was no showing which actually determined that either had a superior COO.
Even in Fishman Island, it was proven that they had the same range in COO...both being able to sense Caribou.
Sanji literally activates CoO, the heartbeat onomatopoeia, the panel darkening, and closing his eye to focus is clearly showing that he activated CoO. The same SFX as when Luffy uses his CoO against Katakuri.
The same SFX as Usopp uses his CoO down here.
Flampe stated that Luffy dodged her attack in a shock manner. Same thing happens with Sanji dodging Katakuri's jelly bean. And Luffy was using it unconsciously. Sanji was also caught off-guard at that point but he managed to dodged an attack from a YC1 with Future Sight.
And since Sanji's new CoO feat in the last chapter was so incredible, that only a blind admiral whose is God in CoO, and Enel using electromagnetic waves can replicate. Luffy and Jinbei can't hear the sound but Sanji can hear it clearly through the walls. So you can say that Sanji's CoO is on the same level as Fujitora's CoO who is an Navy Admiral and Enel who has the island level feat of CoO + his Devil Fruit.
So in conclusion, Katakuri's CoO = Luffy's CoO >= Sanji's CoO > Enel's CoO > Fujitora's CoO >>>>>>> The rest