Click or drag to resize

JamBaseShellListViewCustomCompare Method

Compares the given items by the content of the subitems at the SortColumn index.

Namespace:  Jam.Shell
Assembly:  ShellBrowser.Winforms (in ShellBrowser.Winforms.dll) Version: 6.3.1
Syntax
protected int CustomCompare(
	ListViewItem pItem1,
	ListViewItem pItem2,
	int pSortOrder
)

Parameters

pItem1
Type: System.Windows.FormsListViewItem
The first item.
pItem2
Type: System.Windows.FormsListViewItem
The second item
pSortOrder
Type: SystemInt32
The SortOrder. 1 for Ascending, -1 for Descending.

Return Value

Type: Int32
Returns -1 if x is less than y, 0 if x is equal to y and 1 if x is greater than y.
Remarks
Method is only working correctly if the subitem that is compared is loaded!
See Also