# Sort List based on Relationships with Log In User

**URL:** https://forum.adalo.com/t/sort-list-based-on-relationships-with-log-in-user/16062
**Category:** Database
**Created:** [August 16, 2021, 4:20pm UTC](https://forum.adalo.com/t/sort-list-based-on-relationships-with-log-in-user/16062 "2021-08-16T16:20:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![afonso](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/afonso/32/19120_2.png) [@afonso](https://forum.adalo.com/u/afonso)
#### Post date: [August 16, 2021, 4:20pm UTC](https://forum.adalo.com/t/sort-list-based-on-relationships-with-log-in-user/16062/1 "2021-08-16T16:20:42Z")

</div>

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?
