Updated the like sort query and added a call