python list of dict change dicts id by position in list when moved code example
Example: python list of dict change dicts id by position in list when moved
my_list.insert(new_index, my_list.pop(old_index))
my_list.insert(new_index, my_list.pop(old_index))