Generally files are ordered by name, so please set the names so they will appear in the right order.
Eg.: If you keep the number of digits consistent - 001.jpg 002.jpg 003.jpg…100.jpg
rather than 1.jpg 2.jpg 3.jpg…100.jpg, the files will be arranged in ascending order.