sort a file list before testing to avoid issue with the order