I am creating a sort by function, this will sort products alphabetically, price low/high, etc just like basic sort function work. But this sort should be under the search button, like once the user gets search result then he can sort things from there.
The main problem is that, sorting function is only working on the 1st page of the collections but not on the second page.
Need some guidance, let me know if you want any more information on this.
Please share your site url.
So that i can check and provide you exact solution here.