Hello Daelmo,
Thanks a lot! It's working good now.
Here's the working code for anyone interested:
ArticleCommentCollection comments = new ArticleCommentCollection();
// the filter
IPredicateExpression predicateExpression = new PredicateExpression();
predicateExpression.Add(ArticleCommentFields.IsActive == true);
// the sorter
SortExpression sorter = new SortExpression();
sorter.Add(MemberFields.Username | SortOperator.Ascending);
RelationCollection relationsToUse = new RelationCollection();
relationsToUse.Add(ArticleCommentEntity.Relations.MemberEntityUsingMemberId);
// fetch
comments.GetMulti(predicateExpression, 0, sorter, relationsToUse, pageNumber, pageSize);
The only thing I had to change from your code was the sort on the MemberFields.Username.
Thank you again.
Aure