array public \Bitrix\Main\Grid\Options::getSorting( array );
Method returns array with current grid sorting.