Fixing ordering for photos