CAdvContract :: GetNextSort: Bitrix method

      
<?php 
//  CAdvContract :: GetNextSort()
//  /dist/bitrix/modules/advertising/classes/general/advertising.php:59

    
public static function GetNextSort()
    {
        
$rsContracts CAdvContract::GetList($by="s_sort"$order="desc", array("ID" => "~1""ID_EXACT_MATCH" => "Y"), $is_filtered=false);
        
$arContract $rsContracts->Fetch();
        return 
intval($arContract["SORT"])+10;
    }