public function multiSortBy(array $columns)
    {
        foreach ($columns as $column => $direction) {
            if (strpos($column, '.')) {
                $this->sortByRelation($column, $direction);
            } else {
                $this->sortBy($column, $direction);
            }
        }

        return $this;
    }
public function multiSortBy(array $columns)
    {
        foreach ($columns as $column => $direction) {
            if (strpos($column, '.')) {
                $this->sortByRelation($column, $direction);
            } else {
                $this->sortBy($column, $direction);
            }
        }

        return $this;
    }
public function multiSortBy ( array $ columns ) { foreach ( $ columns as $ column => $ direction ) { if ( strpos ( $ column , '.' ) ) { $ this -> sortByRelation ( $ column , $ direction ) ; } else { $ this -> sortBy ( $ column , $ direction ) ; } } return $ this ; }
Append many column sorting to query builder.

@param array $columns

@return $this
Append many column sorting to query builder .