How to sort image by name

I’ve built an app, that are displaying folder of jpg images and successfully deployed it on

This app works on my laptop, and worked great all images are displayed in ascending order by their name file like image_001, image_002,…

Unfortunately the images are displayed in a random order on the cloud !

Code come is like the one used into this tuto from Python Tutorials for Digital Humanities channel. You can see it and my be find the issue

I’d appreciate any hints :wink:. Thank you for the support!

Hello @llevraud, welcome to the forum!

This is the normal behavior of glob – if you want to make sure they are sorted, you can explicitly sort the list that glob returns python - How are glob.glob()'s return values ordered? - Stack Overflow