Sort and Search functionality working