src/Mappable.php
protected function orderByMapped(Builder $query, ArgumentBag $args, $table, $column, $target)
    {
        $query->with($target)->getQuery()->orderBy("{$table}.{$column}", $args->get('direction'));

        return $query;
    }
protected function orderByMapped(Builder $query, ArgumentBag $args, $table, $column, $target)
    {
        $query->with($target)->getQuery()->orderBy("{$table}.{$column}", $args->get('direction'));

        return $query;
    }
protected function orderByMapped ( Builder $ query , ArgumentBag $ args , $ table , $ column , $ target ) { $ query -> with ( $ target ) -> getQuery ( ) -> orderBy ( "{$table}.{$column}" , $ args -> get ( 'direction' ) ) ; return $ query ; }
Order query by mapped attribute.

@param  \Sofa\Eloquence\Builder $query
@param  \Sofa\Hookable\Contracts\ArgumentBag $args
@param  string $table
@param  string $column
@param  string $target
@return \Sofa\Eloquence\Builder
Order query by mapped attribute .