photosort problem