• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/grids.php
  • Класс: CGridOptions
  • Вызов: CGridOptions::SetSorting
public function SetSorting($by, $order)
{
	$this->all_options["views"][$this->currentView]["last_sort_by"] = $by;
	$this->all_options["views"][$this->currentView]["last_sort_order"] = $order;
}