Ensure sitemap gets updated proper
- When conditionally generating files, sitemap was not correct
- Also ensure file indexs are sorted proper