Is there any way I can sort the data in a repeater based on which user is logged in and looking at it? I have a data-set that lists job opportunities and has a lot of keywords used. I have a user resume data-set that has the same keywords. Is there a way to sort one data-set based on the logged in users information? For example sort the job opportunity that has the most keywords matching the resume of the person logged in on top and then the less keywords that match the farther down the list it goes?
Have a read of the Wix User API to get the current user:
https://www.wix.com/corvid/reference/wix-users.html
https://www.wix.com/corvid/reference/wix-users.html#currentUser
https://www.wix.com/corvid/reference/wix-users.User.html#id
Then try adding code that queries your data for their matched keywords:
https://www.wix.com/corvid/reference/wix-data.html
https://www.wix.com/corvid/reference/wix-data.html#query
https://www.wix.com/corvid/reference/wix-data.WixDataQuery.html
Thank you for the fast reply. With this method won’t it only return the exact matches though? Is there a way to sort all the items from best matched to least matched? I still would like them to be able to view all jobs on the site not just the exact matches