• Модуль: lists
  • Путь к файлу: ~/bitrix/modules/lists/classes/general/listfield.php
  • Класс: CListPropertyField
  • Вызов: CListPropertyField::SetSort
public function SetSort($sort)
{
	if(is_array($this->_property))
	{
		$old_sort = intval($this->_property["SORT"]);
		$new_sort = intval($sort);

		if($old_sort != $new_sort)
		{
			$this->_property["SORT"] = $new_sort;
			$obProperty = new CIBlockProperty;
			$obProperty->Update($this->_property["ID"], $this->_property);
			$this->_sort = $new_sort;
		}
	}
}