9 if (!is_array($arOrder))
13 if (
count($arOrder) < 1)
16 'TABLE_NAME' =>
'ASC',
21 foreach ($arOrder as $strColumn => $strDirection)
23 $strColumn = mb_strtoupper($strColumn);
24 $strDirection = mb_strtoupper($strDirection) ===
'ASC' ?
'ASC' :
'DESC';
29 $arSelect[] = $strColumn;
30 $arQueryOrder[$strColumn] = $strColumn .
' ' . $strDirection;
40 'FIELD_TYPE' =>
'int',
50 $strQueryWhere = $obQueryWhere->GetQuery(
$arFilter);
54 FROM b_perf_index_complete s
55 ' . ($strQueryWhere ?
'WHERE ' . $strQueryWhere :
'') .
'
56 ' . (
count($arQueryOrder) ?
'ORDER BY ' . implode(
', ', $arQueryOrder) :
'') .
'