I have a problem concerning the repeating group’ sorting. Let me explain :
I do an app were people can post and comment post.
When someone post a text, it is displayed on a repeating group.
Post can be upvote and the repeating group sort perfectly all the post regarding their number of vote (Btw I also would like to know how to limit at 1 vote per user loged ) haha
User can click on a post to access to a dedicated page to the post. In this new page, people can do comments about the post. Here is the thing : I created a new data for comment because I want them to be upvoted. So I have to set each comment as a new independant element so i can atribute a numer of vote for each comments. But the problem is : all the comments are collected on the same data base called “comment” . in the page dedicated to a post, i want to display the comment sorted by vote, but only the comment concerning that post, and not all.
For now, i can display only comments linked to the right post so each post has it own comments.
but i can’t find how to sort them by number of vote !
could you help me ?