$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.
Please login to continue.