Update app/models/photo.rb

reverse order