Hello I have a string list:
['American (New):182', 'American (Traditional):181', 'Asian Fusion:177', 'Brazilian:8', 'Canadian (New):345', 'Caribbean:13']
I need to sort it according to the digits present inside the string. How can I do this?
Python analog of PHP's natsort function (sort a list using a "natural order" algorithm)
How to correctly sort a string with a number inside?
Looked at these and tried applying it to my program but didn't work. Maybe its the ':' thats making them not work properly?