Answer the question
In order to leave comments, you need to log in
How to sort categories in Bitrix by the number of elements in them?
There are categories with elements in them. How to sort categories by the number of elements in them?
$db_list_category = CIBlockSection::GetList(Array("ID"=>"ASC"), $arFilter_category, false, $arSelect_category);
Answer the question
In order to leave comments, you need to log in
Good evening. There is a hint here - https://dev.1c-bitrix.ru/api_help/iblock/classes/c...
arOrder - element_cnt (number of elements in the section, works only if bIncCnt = true)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question