db\QueryTrait $orderBy

$orderBy public property

How to sort the query results. This is used to construct the ORDER BY clause in a SQL statement. The array keys are the columns to be sorted by, and the array values are the corresponding sort directions which can be either SORT_ASC or SORT_DESC. The array may also contain yii\db\Expression objects. If that is the case, the expressions will be converted into strings without any change.

public array $orderBy = null
doc_Yii
2016-10-30 16:59:29
Comments
Leave a Comment

Please login to continue.