getOrders() public method
Returns the columns and their corresponding sort directions.
| public array getOrders ( $recalculate = false ) | ||
|---|---|---|
| $recalculate | boolean |
Whether to recalculate the sort directions |
| return | array |
The columns (keys) and their corresponding sort directions (values). This can be passed to yii\db\Query::orderBy() to construct a DB query. |
Please login to continue.