I have a list of strings that I want to sort.
By default, letters have a larger value than numbers (or string numbers), which places them last in a sorted list.
>>> 'a' > '1'
True
>>> 'a' > 1
True
I want to be able to place all the strings that begins with a number at the bottom of the list.
Example:
Unsorted list:
['big', 'apple', '42nd street', '25th of May', 'subway']
Python's default sorting:
['25th of May', '42nd street', 'apple', 'big', 'subway']
Requested sorting:
['apple', 'big', 'subway', '25th of May', '42nd street']