The Images

The images will be sorted as you defined in the variable $order. With the image name you are able to influence the position of that image.

You also have the option to put a file named image_order.txt in your image directory. The file contains the image names in the order you want.

If you want to sort the images by its file names just remove the image_order.txt from the image directories.

If you are working with thumbnails and corresponding big images, the names of the images should be the same.

Please make sure that your image directory contains only files you want to display with the script. If you don't want to use the image_order.txt you should delete the file. Renaming the image_order.txt will not work and can cause errors.