• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/entity/generic/fieldcollection.php
  • Класс: BitrixLocationEntityGenericFieldCollection
  • Вызов: FieldCollection::getSortedItems
public function getSortedItems(): array
{
	$result = $this->items;

	uasort(
		$result,
		function ($a, $b)
		{
			if ($a->getType() == $b->getType())
			{
				return 0;
			}
			return ($a->getType() < $b->getType()) ? -1 : 1;
		}
	);

	return $result;
}