src/Schema/Directives/OrderByDirective.php
public function handleBuilder($builder, $value)
    {
        foreach ($value as $orderByClause) {
            $builder->orderBy(
                $orderByClause['field'],
                $orderByClause['order']
            );
        }

        return $builder;
    }
public function handleBuilder($builder, $value)
    {
        foreach ($value as $orderByClause) {
            $builder->orderBy(
                $orderByClause['field'],
                $orderByClause['order']
            );
        }

        return $builder;
    }
public function handleBuilder ( $ builder , $ value ) { foreach ( $ value as $ orderByClause ) { $ builder -> orderBy ( $ orderByClause [ 'field' ] , $ orderByClause [ 'order' ] ) ; } return $ builder ; }
Apply an "ORDER BY" clause.

@param  \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder  $builder
@param  mixed  $value
@return \Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder
Apply an ORDER BY clause .