setAttributeOrders() public method (available since version 2.0.10)
Sets up the currently sort information.
public void setAttributeOrders ( $attributeOrders, $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