Fixed sorting photos by name.