If you want to do this in the general case, I would try a natural sorting package like natsort.
from natsort import natsorted
my_list = ['image101.jpg', 'image2.jpg', 'image1.jpg']
natsorted(my_list)
Returns:
['image1.jpg', 'image2.jpg', 'image101.jpg']
You can install it using pip i.e. pip install natsort