i am trying to sort a pfquery with multiple conditions, the code below sorts only one column. please help.
- (PFQuery *)queryForTable
{
PFQuery *query = [PFQuery queryWithClassName:self.parseClassName];
[query whereKey:@"mStatus" equalTo:@"running"];
[query orderByAscending:@"mName"];
[query orderByAscending:@"mOrder"];
return query;
}
- (PFQuery *)queryForTable {
PFQuery *query = [PFQuery queryWithClassName:self.parseClassName];
[query whereKey:@"mStatus" equalTo:@"running"];
[query orderByAscending:@"mName"];
[query addAscendingOrder:@"mOrder"];
return query;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With