I searched the forum and found some similar but old topics and not really an answer why this is happening.
I have many galleries, and upload many images to a single post. In the backend images are not sorted by filename. It seems random, maybe date. My galleries show pictures in the same order.
I always use the same naming scheme as to avoid order problems
Other naming schemes don’t work as expected either. Any ideas?