SetSortMode
SetSortMode
Prototype: function SetSortMode ( $mode, $sortby=“” )
Set matches sorting mode, as described in the section called “Sorting modes”. Parameter must be a constant specifying one of the known modes.
WARNING: (PHP specific) you must not take the matching mode constant name in quotes, that syntax specifies a string and is incorrect:
$cl->SetSortMode ( "SPH_SORT_ATTR_DESC" ); // INCORRECT! will not work as expected
$cl->SetSortMode ( SPH_SORT_ATTR_ASC ); // correct, works OK
