I have implemented search and sort functions