Код |
---|
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); $cp = $this->__component; // объект компонента if (is_object($cp)) { $sort = array(); foreach ($arResult as $key => $row) { $sort[$key] = $row['SELECTED']; } array_multisort($sort, SORT_DESC, $arResult); echo "<pre>";print_r($arResult); echo "</pre>"; } ?> |