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 (in ShellBrowser.dll) Version: 7.2
Syntax
protected int CustomCompare(
	ListViewItem pItem1,
	ListViewItem pItem2,
	int pSortOrder
)

Parameters

pItem1  ListViewItem
The first item.
pItem2  ListViewItem
The second item
pSortOrder  Int32
The SortOrder. 1 for Ascending, -1 for Descending.

Return Value

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