Improve the sort files method #3
sort the image file according to the html file content