Icon Sort Method

procedure Sort

Usage

Use this method to sort the dataset when the Sorted property is True and sort columns have been specified for the dataset. The TDataColumn SortDirection property setting controls which columns are sorted, and how.

If no columns have a SortDirection property other than sdNone, then this method does nothing.

The SortCaseInsensitive and SortLocaleInsensitive properties control how the sort is performed.

Information The Sort method only needs to be called once after the sort directions are initially assigned for the columns. After that point, any row operations will automatically maintain the active sort.
Image