• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/component_util.php
  • Класс: CComponentUtil
  • Вызов: CComponentUtil::__SortComponentsTree
static function __SortComponentsTree(&$arTree)
{
	uasort($arTree, array("CComponentUtil", "__TreeFolderCompare"));
	foreach ($arTree as $key => $value)
	{
		if (array_key_exists("#", $arTree[$key]))
			CComponentUtil::__SortComponentsTree($arTree[$key]["#"]);
		if (array_key_exists("*", $arTree[$key]))
			uasort($arTree[$key]["*"], array("CComponentUtil", "__TreeItemCompare"));
	}
}