Quote:
I have a list that I would like to sort by numbers first and then by characters. It would be something like this:
['5Yjb', '5kC7', '79jc', '8v2H', '9J6c', 'Fnyq']
This is the result of standard sort of strings.
You forgot to tell what is wrong with this list.
Quote:
In which case I would need to get '79jc', because it is the only one that has 2 numbers.
You forgot to tell what you want to do with this string.
We can't help you if you don't tell exactly what you want.