Grouping Results

Apply grouping criteria to your results.

To group your results according to specific attributes, use the - (SUPQuery*)groupBy:(SUPString)items method from SUPQuery. For example, to group your results by ID and name, use:

NSString *groupByItem = @"c.id, c.name";
SUPQuery *query1 = [SUPQuery getInstance];
            
//other code for query1
[query1 groupBy:groupByItem];