before changes to cursor in gallery
correct sort order of photos in gallery fragment. Showing the latest added first in the gallery view
correct indentation