For example, I have a list of strings:
How to make pancakes from scratch
How to change a tire on a car
How to install a new showerhead
How to change clothes
I want to it be sorted as in the new list:
How to change a tire on a car
How to change clothes
How to install a new showerhead
How to make pancakes from scratch
In each of these strings, "How to" are the same, it has to look at the next character, and then get the order 'c/i/m', then 'a/c' etc.
L = ['How to make pancakes from scratch',
'How to change a tire on a car',
'How to install a new showerhead',
'How to change clothes']
I can sort one string in alphabetical order. But how to extend the logic to a list of strings?