add search&sort function in record controller