Sorting DataSets
Applies to
TAstaDataSet
AstaDataSets and AstaClientDataSets are InMemory DataSets and support sorting on any non blob field with SortDataSetByFieldName or combination of non-blob fields with SortDataSetByFieldNames. DataSets can not only be sorted but Sorts can be defined with DefineSortOrder, resorted by SortName with SortSorderSort. The last sort can be recalled using LastNameSort and a List of defined sorts can be retriebed by calling AvailableSorts. AstaClientDataSets can be initially orderded using the OrderBy property and then re-sorted locally without going back to the server.
Tip: Code the OnTitleClick of your grids to call SortDataSetByFieldName.