Click or drag to resize

FacetResultLabelComparerCompare Method (Object, Object)

Compares two instances of facet results as object

Namespace:  Dynamicweb.Indexing.Querying.Faceting
Assembly:  Dynamicweb.Indexing (in Dynamicweb.Indexing.dll) Version: 5.0.2
Syntax
public int Compare(
	Object x,
	Object y
)

Parameters

x
Type: SystemObject
First object to be compared
y
Type: SystemObject
Second object to be compared

Return Value

Type: Int32
0 if labels are equal, 1 if first instance is greater, otherwise -1

Implements

IComparerCompare(Object, Object)
Remarks
if any instance equal null or cannot be casted to FacetResult then returns 0
See Also