/**
  * @Authorized
  * @UserRole(0,1)
  * @param SortProductsBindingModel $input
  * @param Products $product
  */
 public function sort(SortProductsBindingModel $input, Products $product)
 {
     foreach ($input->getProduct() as $position => $product_id) {
         $product->updateSort($product_id, $position);
     }
 }