PFQuery *query1 = [PFUser query];
[query1 whereKey:@"array" containedIn:currentUserArray];
PFQuery *orderQuery = [PFQuery orQueryWithSubqueries:@[query1]];
[orderQuery orderByAscending:query1.count];
I know this code won't do the trick, but this is all I have so far.
Basically I'm doing a query on User class to see if any User's "array" is containedIn currentUser's array.
As of right now, I can get all the users that have common array values, but I want to order the results from most common arrays to least common.
I know you can countObjects in query, but I'm trying to count array values in objects in query.
How can I do this? Will I have to go beyond Parse's documentation to accomplish this?