add sort function into search result table