Hello!
I have a table, for example, Person:
Id
FirstName
LastName
CountryId
And I create a typed list in LLBLGen, PersonTypedList:
NumberOfPeople - as an aggregate field: Count(Id)
CountryId
And in my code I'll have something like this:
PersonTypedList typedList = new PersonTypedList();
IRelationPredicateBucket bucket = typedList.GetRelationsInfo();
GroupByCollection groupBy = new GroupByCollection();
groupBy.Add(PersonFields.CountryId);
ISortExpression sorter = new SortExpression();
//and this is where i want to add a sort clause to order by the NumberOfPeople field.
Is this achievable in this way? Or is there another method?
Thank you!