Sort DatasetField

HI all,

I would like to be able to order the result of Dataset Fields (Many-Valued Associations).
In the example:

InvoiceDataset.SetSourceList (List);
InvoiceDataset.Manager: = Manager1;
InvoiceDataset.Open;
ItemsDataset.DatasetField: = InvoiceDataset.FieldByName ('Items') as TDatasetField;
ItemsDataset.Open;

I would like to be able to order ItemsDataset for a content field in the dataset, for example the items field itself.
It's possible?

Hello Flavio,

You can use the [OrderBy] attribute in the mapping to set a default order for the Many-Valued association:

http://www.tmssoftware.biz/business/aurelius/doc/web/orderbyattribute.html