At the moment, I am getting a TypeError. I wanted to sort two arrays at once.
Here's the code:
string_to_sort=[c for c in "`-=[]\\;',./"]
sort_criteria=[192,189,187,219,221,220,186,222,188,190,191]
new_string=[]
new_num_sort=[]
for i in sorted(zip(sort_criteria,string_to_sort)):
new_string.append(i[0])
new_num_sort.append(i[1])
print("".join(new_string))
print(",".join(new_num_sort))