add sort and search result method