Say I have list called sort_me and want to sort with a non lexicographically ordered alphabet called special_alphabet
sort_me = ['appa', 'apple', 'orange', 'carrot']
special_alphabet = "dklmnoabctuvwxyzfghipqrsej"
result = sorted(sort_me, key=?)
print (result)
expected result: ['orange', 'apple', 'appa', 'carrot']