Did you ever wonder if putting your XML sitemap URL at the bottom of your robots.txt will impact your Google Search indexing? The answer is no. Google does not care about the location of your Sitemap URL in your robots.txt file.
John Mueller of Google was asked about this on Twitter and he said "No, it doesn't matter."
The question was "Does the location of sitemap in robots.txt make a difference? Does it cause confusion if it is located above or below the disallows?"
Here are those tweets:
No, it doesn't matter.
— 🧀 John 🧀 (@JohnMu) September 23, 2021
Forum discussion at Twitter.
Note: This was pre-written and scheduled to be posted today, I am currently offline for Simchat Torah.