I have a number of photo images with a name structure format:
Main Location + Sub-location + Unique Reference (within sub-location)

However, the sequence of the original files is often...