public function sortAction($field, $type)
    {
        $this->setOrder('measureunit', $field, $type);

        return $this->redirect($this->generateUrl('admin_shop_measure_unit'));
    }
public function sortAction($field, $type)
    {
        $this->setOrder('measureunit', $field, $type);

        return $this->redirect($this->generateUrl('admin_shop_measure_unit'));
    }
public function sortAction ( $ field , $ type ) { $ this -> setOrder ( 'measureunit' , $ field , $ type ) ; return $ this -> redirect ( $ this -> generateUrl ( 'admin_shop_measure_unit' ) ) ; }
Save order.

@Route("/order/{field}/{type}", name="admin_shop_measure_unit_sort")
Save order .