src/DataSource/ServerSide/CakePHP.php
protected function prepareOrder(Request $request)
    {
        foreach ($request->getOrder() as $order) {
            $this->query->order(
                [$this->table->getColumns()[$order->getColumn()]->getData() => strtoupper($order->getDir())]
            );
        }
    }
protected function prepareOrder(Request $request)
    {
        foreach ($request->getOrder() as $order) {
            $this->query->order(
                [$this->table->getColumns()[$order->getColumn()]->getData() => strtoupper($order->getDir())]
            );
        }
    }
protected function prepareOrder ( Request $ request ) { foreach ( $ request -> getOrder ( ) as $ order ) { $ this -> query -> order ( [ $ this -> table -> getColumns ( ) [ $ order -> getColumn ( ) ] -> getData ( ) => strtoupper ( $ order -> getDir ( ) ) ] ) ; } }
Prepare CakePHP order

@param Request $request DataTable request
Prepare CakePHP order