import_files: Sort the directory traversal