How can I sort it by custom order?
Input:
[ {value: \"typeA\"}, {value: \"typeC\"}, {value: \"typeB\"}, {value: \"typeC\"}, {valu
Taking an input and set the order in my_order and it will print in that order
enter code here user_input = input() my_order = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1357902468' print(*sorted(user_input, key=my_order.index),sep='')