ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
Jam.Shell.Controls.BaseShellListView.TJamBaseShellListView.Sort

Sorts the current view by the passed attribute in the passed order.

Syntax
Pascal
procedure Sort(const pColumn: TShellColumnId; const pSortDirection: TJamSortDirection); overload;
Parameters 
Description 
const pColumn: TShellColumnId 
A column to sort by. The column need not be visible in the current view. 
const pSortDirection: TJamSortDirection 
The sort direction to apply. 
Exceptions 
Description 
If the given column is not supported in the current view. 

The following example sorts a TJamShellList by the Artist column:

 ShellList.Sort(TShellColumns.Music_Artist, TJamSortDirection.sdAscending);