Sorting photos in albums on Mac

Photos imported from a Canon EOS R8 were sorted improperly both by date and file name. The date sorting was wrong because the metadata from the camera was wrong (whenever it got GPS data it used the local date/time) so it was not the fault of Apple Photos but the only other sorting option is by Title and that field is blank in the metadata.


In order to solve this problem, I asked ChatGPT to write me a Mac app that would copy the file name and paste it into the title. Voila! Now Photos properly sorts by file name and hence in the order the photos were shot. I am not sure how to share the app with this community. If any knows please inform me.


Hopefully Apple can restore the sorting functions which were found in iPhoto but were removed in Photos.

iMac 21.5″, macOS 15.6

Posted on Aug 14, 2025 11:15 AM

Reply
8 replies

Aug 14, 2025 12:11 PM in response to Biotech guy

Scripts have already been written.

Thematic Index to Photos for Mac related … - Apple Community


Another option for batch writing titles is to use  Photos Workbench($30)


Probably the best and easiest thing to have done would be to have just corrected the date with the menu "Image>Adjust Date and Time." When a bunch of pictures is selected, this changes them all by the same increment.


Aug 15, 2025 12:17 AM in response to Biotech guy

The next time you import photos from your Canon EOS R8 set the Date & Time of your Mac to the same timezone as the camera (and don't forget to set it back, when you are done). Then the the Photos should be imported with the correct timezone right away.


if you have imported the photos with the wrong timezone and want to fix the timezone with "Image > Adjust Date and Time", you have to do it in two steps:

  • First click into the map for the correct timezone strip and select the correct closest city. This will change the covert the capture date to the timezone you have selected, but not change the sorting, because it will add the timezone offset to the displayed time, the "time Adjusted". "Adjusted" and "Original" will now be different.
  • Now set the "Adjusted" back to "Original". Both times should be the same, but with the correct timezone shown below the map. This will subtract the time difference that Photos added on import by assigning the wrong time zone on import.

These are the fields you have to adjust:


If the clock in your camera has been set correctly for the timezone you have set in the camera, setting the time zone in "Adjust date & Time" to the camera timezone and making "Adjusted" the same as "Original" should suffice to get the sorting correct. If the clock has been drifting a few minutes, you can correct it at the same time.



Aug 15, 2025 05:42 AM in response to léonie

Thanks for the help. Unfortunately, my camera date/time was set to Eastern time when I visited Scotland and every time it picked up the GPS signal it used the local Edinburgh time. However, the camera did not always get the signal from the Canon app so some photos have Eastern time and some have Edinburgh time. As there are over 700 photos to change, the best solution still seems to be using my app that copies the file name into the Title field. At least that gives me all the photos in the order they were shot by the camera. I realize this may be one of the scripts you already wrote. Thanks again.

Aug 15, 2025 07:35 AM in response to Biotech guy

Biotech guy wrote: the best solution still seems to be using my app

You may find that you will want the dates and times corrected. If you transfer the pictures somewhere, or if you use an iPhone, the Title may not be useable for sorting, or it may disappear altogether.


I've done this with countless pictures. For instance, in Ireland before cameras even had GPS, we were taking pictures with 4 cameras with their clocks set to different times! I could separate them with a Smart Album, so I could use "Image>Adjust Date and Time" once on each group.


If you sort by time, you may be able to separate them pretty quickly. The easiest thing is to set up a Smart Album and use a keyword shortcuts to quickly go through the pictures, just tapping a single key, to identify which time zone is being used. I put a section on using Keyword Shortcuts in this:

Choosing Favorites using Keywords in Mac … - Apple Community


I'll say that, in fact, I use titles. So my picture have titles like "2025 08 13 - 123 - Cat Cafe" with date and index number allowing me to sort them by title. But I have also been using a script written by léonie to fix the dates themselves, because it's useful to have the right values.


Aug 15, 2025 10:31 AM in response to Biotech guy

Copying the filename to the title is a great solution to get the images sorted chronologically. I am glad it is working for you. It may not work, if you are using more than one camera from different makers, where the format of the filename differs.

Just a caution for others coming across this discussion - I recommend to make a backup copy of the Photos Library before running an Apple Script for batch changing the photos. If you are downloading a script from somewhere, it may have been written for another system version or not have been tested on your system version at all, there may be problems with the region and language settings. I don't know how good the programming skills of ChatGPT are. So test any script on a small test library before trusting it to run on your main library.


Sorting photos in albums on Mac

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.