add sort to search