Everything works! Allmost

Problem with sorting the images on the sort by popular