Add photo sorting