I'm using AJAX to sort table column by the header link, the problem is whenever I click the link the table not repopulated but instead the rows get repeated, I want to keep the header but empty the table contents, this is the ajax code:I'm using AJAX to sort table column by the head