Sorts the pictures by year and month using the picture exif data.