I am trying to sort a list of strings:
l = ['img1','img2','img11','img3']
I tried this:
l.sort()
>>>['img1', 'img11', 'img2', 'img3']
but the result is not what I want. how can I sort the list so that i get the results below:
['img1', 'img2', 'img3', 'img11']