How to sort by columns within a search result without displaying all rows again after sorting

How to sort by columns within a search result without displaying all rows again after sorting