(non-PHPdoc)
@see Thrace\DataGridBundle\DataGrid.DataGridInterface::setSortOrder()
161623
public function setSortOrder($sortorder)
    {
        $sortorder = strtolower($sortorder);
        if (!in_array($sortorder, array('asc', 'desc'))) {
            throw new \InvalidArgumentException(sprintf('Provided argument "%s" is invalid. Use (asc | desc)', $sortorder));
        }

        $this->sortorder = $sortorder;

        return $this;
    }
1093536
public function setItemSorting($sortIdent, $sortBy, $sortDir = null)
    {
        $sorting = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('aSorting');
        $sorting[$sortIdent]['sortby'] = $sortBy;
        $sorting[$sortIdent]['sortdir'] = $sortDir ? $sortDir : null;

        \OxidEsales\Eshop\Core\Registry::getSession()->setVariable('aSorting', $sorting);
    }
701679
public function setOrder()
    {
        // set order position if exist
        $order = [];
        foreach ($this->data['order'] as $alias => $params) {

            $order = array_flip($order);

            if (empty($params) === false) {

                foreach ($params as $field => $sort) {
                    $order[] = $alias . '.' . $field . ' ' . $sort;
                }
            }
        }

        $this->builder->orderBy($order);

        return null;
    }
286724
protected function setSortOrder($arguments)
    {
        $sortString = '';
        if (!empty($arguments['sort'])) {
            $sortString = $arguments['sort'];
        } else {
            if (!empty($this->settings['sort'])) {
                foreach ($this->settings['sort'] as $sortSetting) {
                    if ('default' === $sortSetting['id']) {
                        $sortString = $sortSetting['sortCriteria'];
                        break;
                    }
                }
            }
        }

        $this->addSortStringForQuery($sortString);
        $this->addSortOrdersToTemplate($arguments);
    }
595992
func (s *DescribeBatchPredictionsInput) SetSortOrder(v string) *DescribeBatchPredictionsInput {
	s.SortOrder = &v
	return s
}
413161
public function setOrderItemCategory($orderItemCategory) 
    {
        if (!$this->_isNumericArray($orderItemCategory)) {
            $orderItemCategory =  array ($orderItemCategory);    
        }
        $this->fields['OrderItemCategory']['FieldValue'] = $orderItemCategory;
        return $this;
    }
846509
public function setSortable($sortable = true)
	{
		if ($this->getItemsDetail()) {
			throw new DataGridException('You can not use both sortable datagrid and items detail.');
		}

		$this->sortable = (bool) $sortable;

		return $this;
	}
825580
def set_sort_order(self, sort_order):
        

        if not isinstance(sort_order, SortOrder):
            raise DaftException("sort_order should be an instance of SortOrder.")

        self._sort_order = str(sort_order)
826952
public function setSortOrder($sortOrder)
    {
        if (!\in_array($sortOrder, ['ASC', 'DESC'])) {
            throw new \InvalidArgumentException(sprintf('The parameter $sortOrder must be one of "ASC" or "DESC", got "%s"', $sortOrder));
        }
        $this->sortOrder = $sortOrder;

        return $this;
    }
301144
public function setOrder(array $orders)
    {
        foreach ($orders as $order) {
            $this->order[] = new Order($order);
        }

        return $this;
    }
829799
public function setOrder(\Sulu\Bundle\Sales\OrderBundle\Entity\Order $order = null)
    {
        $this->order = $order;
    
        return $this;
    }
1326470
public function setSort($sort)
    {
        $this->reordered = $this->sort !== $sort;
        $this->sort = $sort;

        return $this;
    }
822606
@Override
    public void setOrder(Order order) {
        this.order = order;
        if (order != null) {
            switch (order) {
                case SINGLE:
                    this.electronCount = 2;
                    break;
                case DOUBLE:
                    this.electronCount = 4;
                    break;
                case TRIPLE:
                    this.electronCount = 6;
                    break;
                case QUADRUPLE:
                    this.electronCount = 8;
                    break;
                case QUINTUPLE:
                    this.electronCount = 10;
                    break;
                case SEXTUPLE:
                    this.electronCount = 12;
                    break;
                default:
                    this.electronCount = 0;
                    break;
            }
        }
    }
594879
public function setSort($sort = null)
    {
        $sort = $sort && is_array($sort) ? $sort : $this->config->getOption('sort');

        //set the sort values
        $this->sort = array(
            'field'     => isset($sort['field']) ? $sort['field'] : $this->config->getDataModel()->getKeyName(),
            'direction' => isset($sort['direction']) ? $sort['direction'] : 'desc',
        );

        //if the sort direction isn't valid, set it to 'desc'
        if (!in_array($this->sort['direction'], array('asc', 'desc'))) {
            $this->sort['direction'] = 'desc';
        }
    }
289012
protected function setSourceOrder()
    {
        /** @var \VirtueMartModelOrders $orders */
        $orders = VmModel::getModel('orders');
        $this->source = $orders->getMyOrderDetails($this->id);
    }
715259
public function setOrderParameters($idAttr, $orderAttr, $labelAttr)
    {
        $this->orderParameters = [
            'idAttr' => $idAttr,
            'orderAttr' => $orderAttr,
            'labelAttr' => $labelAttr
        ];

        return $this;
    }
110715
public function setOrder(\Amulen\ShopBundle\Entity\ProductOrder $order = null)
    {
        $this->order = $order;

        return $this;
    }