files are now sorted before being published