How can I sort imported images by file name in Photos on an M1 MacBook Pro?

I've spent eons scanning my ols camera pictures so I can create a digital library in Photos. I'm using Photos 9 running on an M1 MacBook Pro with Sonoma. I carefully created filenames that started with the date of the image followed by a description of the event. They all now sort in chronological order in the Finder on my Mac. Now I import them into Photos and then drag subsets of them into an album that I created, but the pictures are in random order! In the menus I see that I can sort by Title, Oldest First or Newest First but none of those change the displayed order :-(. None of these pictures were taken with a digital camera so there is no metadata, although maybe the scanner added something as each was being scanned. Anyway, this is frustrating the heck out of me. Why can't I do the bleeding obvious here?


[Re-Titled by Moderator]

MacBook Pro (M1, 2020)

Posted on Feb 17, 2025 10:56 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 17, 2025 11:27 AM

Because Photos is a photo manager, and filenames are not what it works with. It's looking for the Title in the metadata.


However all is not lost. You can add the filenames to the Titles using an Apple script, here:


Thematic Index to Photos for Mac related … - Apple Community


for instance this one:


Script: Batch Changing the Titles to the … - Apple Community


Similar questions

5 replies
Question marked as Top-ranking reply

Feb 17, 2025 11:27 AM in response to Mick_M

Because Photos is a photo manager, and filenames are not what it works with. It's looking for the Title in the metadata.


However all is not lost. You can add the filenames to the Titles using an Apple script, here:


Thematic Index to Photos for Mac related … - Apple Community


for instance this one:


Script: Batch Changing the Titles to the … - Apple Community


Feb 17, 2025 11:51 AM in response to Mick_M

Pictures in Photos cannot be sorted by filenames. Since they can change depending on how they are used, filenames aren't considered an important part of an image, and Photos is concerned with images. Date of capture is an important aspect of an image but, unfortunately, not when they are scanned. I have many old family pictures that I've scanned, and neither the filename nor the date is particularly useful.


Images have Dates, Keywords, Titles, and Captions, and in Photos on a Mac, you can sort by Dates or Titles. So one option you have is to use the filename for the Title. There are some user written scripts that can help with that, here:

Thematic Index to Photos for Mac related … - Apple Community


Personally, I use the 3rd Party app  Photos Workbench($30) to fix my Titles. You get lots of options, like this:

This shows the Filename plus a description, but you have many choices to include in the Title, including date, camera model, index number, etc.


There is also a Title find & replace to help fix mistakes! The app also includes the ability to compare two pictures side by side, and it can help in rating pictures.


In Photos you can push the pictures around to the order you want, and then you can use a script to change the dates, or to add dates to titles by using scripts or Photos Workbench.


Of course Yer_Man said some of the same stuff about the time I was typing…


Feb 17, 2025 1:05 PM in response to Yer_Man

Thanks guys - I appreciate your efforts to help me and for the closure of at least knowing where I stand. I guess I have no choice but to do a bunch of extra work now for a situation that I see as an entirely plausible thing people might do i.e. bring their old scanned camera photographs into Photos. One example solution here is so painfully obvious and so utterly easy to implement - if importing images that don't have any metadata at all then, as a courtesy to the user, just copy the filename into the Title field (vs doing nothing and forcing a painful user experience). Why on earth would Apple effectively spit in my face like that for such a customary use case :-(. Grizzle, groan...


And yea, I know how to provide feedback via Apple.com/feedback. Having lost count of the number I've submitted over the decades I've come to the realization that it's just equivalent to praying. Even back when I was a developer and filed feedback and/or bug reports it was always a complete shock if they ever responded.


Sorry for being such a grouch. This is clearly a case of it doesn't "just work".

Feb 17, 2025 2:50 PM in response to Mick_M

Why on earth would Apple effectively spit in my face like that


I really wouldn't take it personally. Be honest, the real problem here is that you chose to try and solve your problem in the Finder before even testing to see if your method would work in Photos. If you'd done this work within Photos you'd have no issue. Or if you'd chosen any of a dozen photo apps like say, Graphic Converter to do the work, again you would not have this issue. So I think maybe you should be prepared to take responsibility for your own incorrect assumptions.


As you were a developer yourself, I'm sure you realise that no app is all things to all people. Photos has its target cohort of Users, and yes, they mostly shoot with iPhones or at least digital cameras, and while it will do more, that is what it's best at. Perhaps you might consider one of the many other photo manager applications and find one the works with filenames.


And certainly, if you feel Apple are abusing you so, I cannot think why you would use any of their products one moment longer.

Feb 17, 2025 3:14 PM in response to Yer_Man

Yea, apologies. I was ticked off and ranting - my choice of phrases was kind of over the top. That being said, I'm at least sticking with my stance that an innocent user with a bunch of scanned photos made in a logical order shouldn't find himself so stuck when such a simple, helpful solution could have been implemented by Apple. I know many retired, not so computer savvy people for whom scanning their life's photos (and never using AppleScripts) is on their bucket list. Apple traditionally targets such users, so this import process could be a lot better. Just because I was too mouthy for my own good doesn't take Apple off the hook (in my opinion)...


Anyway, all that being said, I was able to run that AppleScript and it did get me out of a jam. Thanks, and sorry again. Also, thanks to the moderator for changing the title - clearly a better choice.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How can I sort imported images by file name in Photos on an M1 MacBook Pro?

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