I'm trying to make a grid of images that match the positional order that images were taken in. They're microscope images where the microscope took pictures in ~300 places across the surface of the slide in a serpentine pattern (take 10 images left to right, shift down, take 10 images right to left, shift down, take 10 images left to right etc). When I make a contact sheet grid of the images, it always starts each row on the left, so every other row is "out of order" for my purposes. I'm open to any idea to make a grid in an automated way! Contact sheets just seemed like the easiest automated option which is why I've been exploring that.
Since it's a script, it can of course it can be modified in any way you wnat to enforce specific ordering. Similarly, there are alternate scripts out there that already provide more advanced options. And finally of course you can simply try alternate image viewers like IrfanView and XnView that have similar functions and also offer more control over ordering based on specific criteria and can create contact sheets as well.