original_string: public static function action_category_change_sortorder_up_one(\core_course_category $category) {
          if (!$category->can_change_sortorder()) {
              throw new \moodle_exception('permissiondenied', 'error', '', null, 'core_course_category::can_change_sortorder');
          }
          return $category->change_sortorder_by_one(true);
      }
code: public static function action_category_change_sortorder_up_one(\core_course_category $category) {
          if (!$category->can_change_sortorder()) {
              throw new \moodle_exception('permissiondenied', 'error', '', null, 'core_course_category::can_change_sortorder');
          }
          return $category->change_sortorder_by_one(true);
      }
code_tokens: public static function action_category_change_sortorder_up_one ( \ core_course_category $ category ) { if ( ! $ category -> can_change_sortorder ( ) ) { throw new \ moodle_exception ( 'permissiondenied' , 'error' , '' , null , 'core_course_category::can_change_sortorder' ) ; } return $ category -> change_sortorder_by_one ( true ) ; }
docstring: Resort a categories subcategories shifting the given category up one.
  
  @param \core_course_category $category
  @return bool
  @throws \moodle_exception
docstring_tokens: Resort a categories subcategories shifting the given category up one .