public function orderBy()
    {
        if (Request::input('order')) {
            return Request::input('order');
        }

        if ($this->orderBy) {
            return $this->orderBy;
        }

        return $this->model->getKeyName();
    }
public function orderBy()
    {
        if (Request::input('order')) {
            return Request::input('order');
        }

        if ($this->orderBy) {
            return $this->orderBy;
        }

        return $this->model->getKeyName();
    }
public function orderBy ( ) { if ( Request :: input ( 'order' ) ) { return Request :: input ( 'order' ) ; } if ( $ this -> orderBy ) { return $ this -> orderBy ; } return $ this -> model -> getKeyName ( ) ; }
Return Managed Model OrderBy.

Primary key is default.

@return string
Return Managed Model OrderBy .