• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/component/base.php
  • Класс: BitrixIblockComponentBase
  • Вызов: Base::getOffersSort
protected function getOffersSort()
{
	$offersOrder = array(
		mb_strtoupper($this->arParams['OFFERS_SORT_FIELD']) => $this->arParams['OFFERS_SORT_ORDER'],
		mb_strtoupper($this->arParams['OFFERS_SORT_FIELD2']) => $this->arParams['OFFERS_SORT_ORDER2']
	);
	if (!isset($offersOrder['ID']))
		$offersOrder['ID'] = 'DESC';

	return $offersOrder;
}