public setAttributeOrders ( array | null $attributeOrders, boolean $validate = true ) | ||
$attributeOrders | array | null | sort directions indexed by attribute names. Sort direction can be either `SORT_ASC` for ascending order or `SORT_DESC` for descending order. |
$validate | boolean | whether to validate given attribute orders against [[attributes]] and [[enableMultiSort]]. If validation is enabled incorrect entries will be removed. |