Now it would be nice to sort a bunch of images automatically based on
the exif information. A script in this forum that provides a shell
script that sorts a bunch of images in a directory outline
year/year-month-day.

The camera usually uses a number with the photo names that is
incremented on each photo taken. That way the images are sorted by
creation time. But it happens that photos are taken on the same day by
different people and therefore by different cameras. If you then put
all photos of that day in one folder, they are not sorted by creation
time anymore. I then use the following script to rename the images
using their date and time: