I set a limit for my query to be 10 for example and then I want to get the last 10 results in the data set AND sorted with ascending time! Okay I know I can add:
[messages addDescendingOrder:@"createdAt"];
//OR
[messages addAscendingOrder:@"createdAt"];
But what this is doing is that it is getting the first 10 records or the last 10 records... It is not sorting the results themselves!! The ascending order is basically setting where the results are going to start... From bottom or from top. But I want the results set coming back to be last 10 results and those results in ascending order. Instead, I am getting last 10 results but in the table I have the newest one on the top and the oldest one in the set to be the last cell in the table... I want the reverse of that...
Is there a way to have Parse take care of this rather than making logic to do it on the device itself? Any help is greatly appreciated.