Use this method to sort an un-bound grid when the Sorted property is True and sort columns have been specified for the grid. The TGridColumnSortDirection 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 SortRows method only needs to be called once after the sort directions are initially assigned for the grid columns. After that point, any row operations will automatically maintain the active sort.