I just had a small confusion regarding a simple phrase. If I want to say "It starts to smell" which one is correct? and why?
Es fängt zu riechen an.
Es fängt an zu riechen.
I'm interested in a grammatical explanation regarding which of these parts of speech have the right to precede the other. I'm more inclined to think that the first one is correct since the separable prefix should come last but I googled both phrases and got numerable results. Also, Google Translate gives the second as correct so I'm confused.