I currently have the following list of strings:
['0\t *** *', '1\t * *', '2\t * *', '3\t ***',
'-1\t *', '-2\t *', '-3\t **']
So, I am trying to sort the list such that it becomes:
['3\t ***', '2\t * *', '1\t * *', '0\t *** *',
'-1\t *', '-2\t *', '-3\t **']
However, when I use:
new_list = sorted(new_list, reverse=True)
I get the following:
['3\t ***', '2\t * *', '1\t * *', '0\t *** *',
'-3\t **', '-2\t *', '-1\t *']
How would I fix it so that it takes -3 into account rather than just - when sorting the strings in the list.