worked on photo_sort_viewr