Sort photos by file names