I have two lists:
refList = ['INDIA', 'ALPHA','CHARLIE','BRAVO','WHISKEY','SIERRA']
sortList = ['CHARLIE','SIERRA','ALPHA', 'INDIA']
I want to sort sortList
according to refList
, i.e.:
result = ['INDIA', 'ALPHA','CHARLIE','SIERRA']
What is the most efficient way of doing this?