Got rid of sort fucntion in search