

def move_item(self, item, new_pos, group_name=None):
    ' Move an item to a new position.\n\n        :param key item: The key of the item to move. If the key does\n            not exist, this method will do nothing.\n        :param key new_pos: The item to move will be inserted after the item\n            with this key. If this key does not exist, the item will be moved\n            to the first position.\n        '
    if (not group_name):
        _move_ordered_dict_item(self.filters, item, new_pos)
    else:
        self.filters[group_name].move_filter(item, new_pos)

dataset/ETHPy150Open rproepp/spykeviewer/spykeviewer/plugin_framework/filter_manager.py FilterManager.move_item/original