Fixed sorting order of files to add