src/Eloquent/Concerns/SortsModels.php
protected function sort($query, array $sortBy)
    {
        /** @var SortParameterInterface $param */
        foreach ($sortBy as $param) {
            $this->sortBy($query, $param);
        }
    }
protected function sort($query, array $sortBy)
    {
        /** @var SortParameterInterface $param */
        foreach ($sortBy as $param) {
            $this->sortBy($query, $param);
        }
    }
Apply sort parameters to the query.

@param Builder $query
@param SortParameterInterface[] $sortBy
@return void