protected function initializeSorting(ContextInterface $context)
    {
        if (null !== $activeSort = $context->getActiveSort()) {
            $columnName = $activeSort->getColumnName();
            if ($this->table->hasColumn($columnName)) {
                $this->table->getColumn($columnName)->applySort($this, $activeSort);
            }
        }
    }
protected function initializeSorting(ContextInterface $context)
    {
        if (null !== $activeSort = $context->getActiveSort()) {
            $columnName = $activeSort->getColumnName();
            if ($this->table->hasColumn($columnName)) {
                $this->table->getColumn($columnName)->applySort($this, $activeSort);
            }
        }
    }
protected function initializeSorting ( ContextInterface $ context ) { if ( null !== $ activeSort = $ context -> getActiveSort ( ) ) { $ columnName = $ activeSort -> getColumnName ( ) ; if ( $ this -> table -> hasColumn ( $ columnName ) ) { $ this -> table -> getColumn ( $ columnName ) -> applySort ( $ this , $ activeSort ) ; } } }
Initializes sorting by applying all active sorts through the related column types.

@param ContextInterface $context
Initializes sorting by applying all active sorts through the related column types .