src/Models/Base.php
public function scopeOrder(Builder $query)
    {
        if ($order = config('typicms.'.$this->getTable().'.order')) {
            foreach ($order as $column => $direction) {
                $query->orderBy($column, $direction);
            }
        }

        return $query;
    }
public function scopeOrder(Builder $query)
    {
        if ($order = config('typicms.'.$this->getTable().'.order')) {
            foreach ($order as $column => $direction) {
                $query->orderBy($column, $direction);
            }
        }

        return $query;
    }
public function scopeOrder ( Builder $ query ) { if ( $ order = config ( 'typicms.' . $ this -> getTable ( ) . '.order' ) ) { foreach ( $ order as $ column => $ direction ) { $ query -> orderBy ( $ column , $ direction ) ; } } return $ query ; }
Order items.

@param Builder $query

@return Builder $query
Order items .