src/Gzero/Core/Query/OrderBy.php
public function apply(Builder $query, string $tableAlias = null, string $customName = null)
    {
        if ($this->hasBeenApplied()) {
            return;
        }

        $name = $this->buildDbName($tableAlias, $customName);

        $query->orderBy($name, $this->direction);
        $this->setApplied(true);
    }
public function apply(Builder $query, string $tableAlias = null, string $customName = null)
    {
        if ($this->hasBeenApplied()) {
            return;
        }

        $name = $this->buildDbName($tableAlias, $customName);

        $query->orderBy($name, $this->direction);
        $this->setApplied(true);
    }
public function apply ( Builder $ query , string $ tableAlias = null , string $ customName = null ) { if ( $ this -> hasBeenApplied ( ) ) { return ; } $ name = $ this -> buildDbName ( $ tableAlias , $ customName ) ; $ query -> orderBy ( $ name , $ this -> direction ) ; $ this -> setApplied ( true ) ; }
Applies orderBy on Eloquent query builder

@param Builder     $query      Eloquent query builder
@param string|null $tableAlias SQL table alias
@param string|null $customName Override field name

@return void
Applies orderBy on Eloquent query builder