Sort files and folders based on a config file