public function getOrderColumn()
    {
        $requestedColumnNames = $this->getRequestedColumnNames()->toArray();

        $order = request('order');

        $orderColumn = $requestedColumnNames[$order[0]['column']];

        if ($methodName = $this->hasCustomOrdering($orderColumn)) {
            $orderColumn = $this->class::$methodName();
        } elseif ($methodName = $this->hasCustomRawOrdering($orderColumn)) {
            // Convert it into an array so that parent function can return directly
            $orderColumn = [$this->class::$methodName($order[0]['dir'])];
        }

        return $orderColumn;
    }
public function getOrderColumn()
    {
        $requestedColumnNames = $this->getRequestedColumnNames()->toArray();

        $order = request('order');

        $orderColumn = $requestedColumnNames[$order[0]['column']];

        if ($methodName = $this->hasCustomOrdering($orderColumn)) {
            $orderColumn = $this->class::$methodName();
        } elseif ($methodName = $this->hasCustomRawOrdering($orderColumn)) {
            // Convert it into an array so that parent function can return directly
            $orderColumn = [$this->class::$methodName($order[0]['dir'])];
        }

        return $orderColumn;
    }
public function getOrderColumn ( ) { $ requestedColumnNames = $ this -> getRequestedColumnNames ( ) -> toArray ( ) ; $ order = request ( 'order' ) ; $ orderColumn = $ requestedColumnNames [ $ order [ 0 ] [ 'column' ] ] ; if ( $ methodName = $ this -> hasCustomOrdering ( $ orderColumn ) ) { $ orderColumn = $ this -> class :: $ methodName ( ) ; } elseif ( $ methodName = $ this -> hasCustomRawOrdering ( $ orderColumn ) ) { // Convert it into an array so that parent function can return directly $ orderColumn = [ $ this -> class :: $ methodName ( $ order [ 0 ] [ 'dir' ] ) ] ; } return $ orderColumn ; }
Returns the name of the column for ordering.

@return string
Returns the name of the column for ordering .