devo_wmOriginal post
Rank 1: Thread
What's the best way to order a related field in a collection? is there a qay to set a default order by field? Or can you set the orderby in the query?
Summary
Developers asking how to set a default "order by" field in a relationship collection. The solution is to specify the desired order using the `orderBy()` method in the query.