I understand sorting data at the top level. But i dont understand how to sort the related data. is there a way to sort the data returned from the relations? specifically, i want to order the “comment” array by the date created for each object
I want to sort the comments by date created. is this possible? should my comments table have an objectID column. the photo objectID. I could then use a ‘where’ clause to get the photo comments instead of the relation.
Yes, I guess it’s resolved (sorting relations is not possible when getting parent object(s) with relations… we need to fetch relations separately and then we can use “sort by”). Thanks for the follow up