public static function GetComponentsTree($filterNamespace = false, $arNameFilter = false) { $arTree = CComponentUtil::__GetComponentsTree($filterNamespace, $arNameFilter); CComponentUtil::__SortComponentsTree($arTree["#"]); return $arTree; }