I have the list of strings:
['bsdf', 'dfgds', 'asdf']
I defined alphabet order:
'dfgsab'
I would like to sort my strings according to the order defined in my alphabet. So in this example the output would be:
['dfgds', 'asdf', 'bsdf']
How should I do it in the most efficient way?