Think they're arranged by last post By default. They probably should just stick in the order they're stuck though. Feature request maybe.
I think it needs to be changed by admin on settings.
I've encountered that sitemap.xml file contains the links to topics that has been removed, but not the fresh(currently live) topics. Why it is so?
I doubt it's an expected or designed behavior
The code looks good to me what version of nodebb are you running? Is your site public?
Guys, any suggestions?
@Tom-Riddleff That is quite weird. Would it be possible for you to provide us a copy of your database so we can investigate the problem?