TdxCustomShellListView.Sort Method
Sorts content of the Shell List View control against the column marked by the sort glyph using the sort order indicated by it.
Declaration
procedure Sort; overload;
Remarks
If the Sorting property is set to True
, a user can click a column’s header to sort the Shell List View control’s content against that column and change the sort order. Folders and files are sorted separately.
Note
Users can sort shell items only if the ViewStyle property is set to TdxListViewStyle.Report because the Shell List View control displays columns and column headers only in Report mode.
Call the Sort
procedure to sort files and folders according to the current sort settings. A Sort
procedure call raises the OnCompare event multiple times, once for every two shell items. You can handle this event to sort shell items in a custom manner. The OnSortCompleted event occurs once the sort operation is complete.
You can call the Sort(Integer,Boolean) procedure to sort content of the Shell List View control against any column in any sort order.