AJAX sorting while order value is within a variable – Jquery ajax
Have not found anyhing on stack My sorting method is: if($_GET['f1']=='ASC') { $order = ' ORDER BY clients.name ASC '; $f1 = '<button type="button" class="btn btn-link btn-sm f1" id="DESC"><i class="bi bi-sort-alpha-down-alt"></i></button>'; } elseif($_GET['f1']=='DESC') { $order = ' ORDER BY clients.name…