• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/entity/source/config.php
  • Класс: BitrixLocationEntitySourceConfig
  • Вызов: Config::getIterator
public function getIterator(): Traversable
{
	usort(
		$this->items,
		function (ConfigItem $item1, ConfigItem $item2)
		{
			if ($item1->getSort() == $item2->getSort())
			{
				return 0;
			}

			return ($item1->getSort() < $item2->getSort()) ? -1 : 1;
		}
	);

	return new ArrayIterator($this->items);
}