I have search result page for a car seller website, it a listing page. There are some options on html template like:
order by data , price , price des
I should order results by clicking this options. Client doesn't want to use datatables. How can I implement it? I know how to fetch data with laravel:
DB::table('<table name>')->orderBy('<field name>', '<direction>')->get();
But I couldn't understand the logic, because after I come to search result page with data, how can I take query and change the order at current page?
Or is there a technique for that?