def METHOD_NAME(self, value):
    current_position = self.current_category.objectIds().index(self.context.id)
    all_actions = list(self.current_category._objects)
    current_action = all_actions.pop(current_position)
    new_position = value - 1
    all_actions = (
        all_actions[0:new_position] + [current_action] + all_actions[new_position:]
    )
    self.current_category._objects = tuple(all_actions)