original_string: protected function prepareOrder(Request $request)
      {
          foreach ($request->getOrder() as $order) {
              $this->query->order(
                  [$this->table->getColumns()[$order->getColumn()]->getData() => strtoupper($order->getDir())]
              );
          }
      }
code: protected function prepareOrder(Request $request)
      {
          foreach ($request->getOrder() as $order) {
              $this->query->order(
                  [$this->table->getColumns()[$order->getColumn()]->getData() => strtoupper($order->getDir())]
              );
          }
      }
code_tokens: protected function prepareOrder ( Request $ request ) { foreach ( $ request -> getOrder ( ) as $ order ) { $ this -> query -> order ( [ $ this -> table -> getColumns ( ) [ $ order -> getColumn ( ) ] -> getData ( ) => strtoupper ( $ order -> getDir ( ) ) ] ) ; } }
docstring: Prepare CakePHP order
  
  @param Request $request DataTable request
docstring_tokens: Prepare CakePHP order