I have a list
mylist = [[\'123\', \'BOOL\', \'234\'], [\'345\', \'INT\', \'456\'], [\'567\', \'DINT\', \'678\']]
I want to sort it with the orde
Another way could be; set your order in a list:
index = [2,1,0]
and create a new list with your order wished:
mylist = [mylist[_ind] for _ind in indx] Out[2]: [['567', 'DINT', '678'], ['345', 'INT', '456'], ['123', 'BOOL', '234']]