original_string: protected static function move_policy_document($policyid, $step) {
          global $DB;
  
          $sortorder = $DB->get_field('tool_policy', 'sortorder', ['id' => $policyid], MUST_EXIST);
          $DB->set_field('tool_policy', 'sortorder', $sortorder + $step, ['id' => $policyid]);
          static::distribute_policy_document_sortorder();
      }
code: protected static function move_policy_document($policyid, $step) {
          global $DB;
  
          $sortorder = $DB->get_field('tool_policy', 'sortorder', ['id' => $policyid], MUST_EXIST);
          $DB->set_field('tool_policy', 'sortorder', $sortorder + $step, ['id' => $policyid]);
          static::distribute_policy_document_sortorder();
      }
code_tokens: protected static function move_policy_document ( $ policyid , $ step ) { global $ DB ; $ sortorder = $ DB -> get_field ( 'tool_policy' , 'sortorder' , [ 'id' => $ policyid ] , MUST_EXIST ) ; $ DB -> set_field ( 'tool_policy' , 'sortorder' , $ sortorder + $ step , [ 'id' => $ policyid ] ) ; static :: distribute_policy_document_sortorder ( ) ; }
docstring: Change the policy document's sortorder.
  
  @param int $policyid
  @param int $step
docstring_tokens: Change the policy document s sortorder .