• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/entity_query.php
  • Класс: CEntityQuery
  • Вызов: CEntityQuery::addOrder
public function addOrder($definition, $order = 'ASC')
{
	if (!in_array($order, array('ASC', 'DESC'), true))
	{
		throw new Exception('Invalid order format.');
	}

	$this->order[$definition] = $order;
}