sortByFilenameAscending() Throws error
PermalinkI hope I’m in the correct forum for this question. I’m using the Simple Gallery block and it does not sort by file name so I tried editing its controller.php by adding $filelist->sortByFilenameAscending(); in the getImages($filesetID) function just below $filelist->filterBySet($fileset); it throws an error when I do that. Am I missing something. How can I get the block to display the images in file name order? Thanks
Exception Occurred: /home/admin/web/MYSITE.COM/public_html/packages/simple_gallery/blocks/simple_gallery/controller.php:275 Call to a member function sortByFilenameAscending() on null (1)
Thanks so much. It works wonderfully now!
What is the error?