src/QueryDataTable.php
protected function applyOrderColumn($column, $orderable)
    {
        $sql      = $this->columnDef['order'][$column]['sql'];
        $sql      = str_replace('$1', $orderable['direction'], $sql);
        $bindings = $this->columnDef['order'][$column]['bindings'];
        $this->query->orderByRaw($sql, $bindings);
    }
protected function applyOrderColumn($column, $orderable)
    {
        $sql      = $this->columnDef['order'][$column]['sql'];
        $sql      = str_replace('$1', $orderable['direction'], $sql);
        $bindings = $this->columnDef['order'][$column]['bindings'];
        $this->query->orderByRaw($sql, $bindings);
    }
protected function applyOrderColumn ( $ column , $ orderable ) { $ sql = $ this -> columnDef [ 'order' ] [ $ column ] [ 'sql' ] ; $ sql = str_replace ( '$1' , $ orderable [ 'direction' ] , $ sql ) ; $ bindings = $ this -> columnDef [ 'order' ] [ $ column ] [ 'bindings' ] ; $ this -> query -> orderByRaw ( $ sql , $ bindings ) ; }
Apply orderColumn custom query.

@param string $column
@param array  $orderable
Apply orderColumn custom query .