original_string: public static function reorder_course_competency($courseid, $competencyidfrom, $competencyidto) {
          $params = self::validate_parameters(self::reorder_course_competency_parameters(), array(
              'courseid' => $courseid,
              'competencyidfrom' => $competencyidfrom,
              'competencyidto' => $competencyidto,
          ));
          self::validate_context(context_course::instance($params['courseid']));
          return api::reorder_course_competency($params['courseid'], $params['competencyidfrom'], $params['competencyidto']);
      }
code: public static function reorder_course_competency($courseid, $competencyidfrom, $competencyidto) {
          $params = self::validate_parameters(self::reorder_course_competency_parameters(), array(
              'courseid' => $courseid,
              'competencyidfrom' => $competencyidfrom,
              'competencyidto' => $competencyidto,
          ));
          self::validate_context(context_course::instance($params['courseid']));
          return api::reorder_course_competency($params['courseid'], $params['competencyidfrom'], $params['competencyidto']);
      }
code_tokens: public static function reorder_course_competency ( $ courseid , $ competencyidfrom , $ competencyidto ) { $ params = self :: validate_parameters ( self :: reorder_course_competency_parameters ( ) , array ( 'courseid' => $ courseid , 'competencyidfrom' => $ competencyidfrom , 'competencyidto' => $ competencyidto , ) ) ; self :: validate_context ( context_course :: instance ( $ params [ 'courseid' ] ) ) ; return api :: reorder_course_competency ( $ params [ 'courseid' ] , $ params [ 'competencyidfrom' ] , $ params [ 'competencyidto' ] ) ; }
docstring: Change the order of course competencies.
  
  @param int $courseid The course id
  @param int $competencyidfrom The competency to move.
  @param int $competencyidto The competency to move to.
  @return bool
docstring_tokens: Change the order of course competencies .