Sort List Items (Last Viewed)

Database & APIs

Hey, I want to create a list for users that shows them their last viewed documents. The challenge is that those documents are viewed by different users, that's why I can't just add a timestamp to the document when they are viewed. My Idea was to create a list of the documentIDs in the user Document. So i got the history here, but this also doesn't really make sense since a document which was already viewed doesn't change the order of the list. :/ Any ideas?

What have you tried so far?

I tried some custom function written by ai which didn't work

Did you check FlutterFlow's Documentation for this topic?
No
3
1 reply