$query->andFilterWhere(['like', 'phone', $params['phone']]); | $query->andFilterWhere(['like', 'phone', $params['phone']]); | ||||
} | } | ||||
$query->orderBy('user.lastname ASC, user.name ASC'); | |||||
$query->orderBy('user.type DESC, user.lastname ASC, user.name ASC'); | |||||
return $query; | return $query; | ||||
} | } |