src/BaseRepositoryEloquent.php
protected function querySort($query, $sort = [])
    {
        $sort = $sort ?: $this->sort;

        foreach ($sort as $attribute => $order) {
            $query->orderBy($attribute, $order);
        }

        return $query;
    }
protected function querySort($query, $sort = [])
    {
        $sort = $sort ?: $this->sort;

        foreach ($sort as $attribute => $order) {
            $query->orderBy($attribute, $order);
        }

        return $query;
    }
protected function querySort ( $ query , $ sort = [ ] ) { $ sort = $ sort ? : $ this -> sort ; foreach ( $ sort as $ attribute => $ order ) { $ query -> orderBy ( $ attribute , $ order ) ; } return $ query ; }
Query sort.

@param  \Illuminate\Database\Eloquent\Builder $query
@param  array                                 $sort
@return \Illuminate\Database\Eloquent\Builder
Query sort .