I have 1,015 images in a folder and this image is classified into seven types and these types are categories of medical diagnoses of skin cancer, and the same images are classified in the Excel file by number (the number of each picture corresponds to the type of diagnosis of this image). Clearly, each image has a specific number corresponding to the diagnostic type, my question is how to sort these images in the folder in groups so that each group of images have the same diagnosis.