fix search sorting