I have a list
mylist = [['123', 'BOOL', '234'], ['345', 'INT', '456'], ['567', 'DINT', '678']]
I want to sort it with the order of 1. DINT 2. INT 3. BOOL
Result:
[['567', 'DINT', '678'], ['345', 'INT', '456'], ['123', 'BOOL', '234']]
I've seen other similar questions in stackoverflow but nothing similar or easily applicable to me.
['317.3', 'FLOAT', '268.0'], how do I know where it goes in the sorted output?