Jason Snell, writing at Six Colors:
In the gray box found toward the top of the Info window, you’ll see some basic data about the photo. The first line indicates the device that took the photo—in my example, an iPhone 11 Pro. The second line displays which lens took the photo, and this is how you can sort out your photos from one another by lens used.
I’ve done something very similar to separate photos by phone model and even pics taken using my mirrorless. This is a very cool application of Photos and shows the power of a database applied to a creative endeavor.