Sort List based on Relationships with Log In User

Hi,

If I have a list of images with a many2many relationship with users called “users that have seen this photo” is there a way to sort a list of images with the ones that the log in hasn’t seen yet appearing first?