S
S
Sergey2019-04-11 21:06:59
1C-Bitrix
Sergey, 2019-04-11 21:06:59

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

1 answer(s)
E
Eugene Pukha, 2019-04-11
@summoner2015

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 question

Ask a Question

731 491 924 answers to any question