[Solved] Code to check for duplicates in database and only displaying the newest on repeater (based on updated date)

Yes, I tried it with different testUsers created by myself and added data to the database for everyone seperately with different locations.
The Code identifies who is the current Owner and makes sure, that no duplicates are displayed on the repeater based on the location.
With the reverse function the code makes also sure tho only take the newest data of the combined (copyOwner & Location).

But thanks for the support