Class FacetResultLabelComparer
- Namespace
- Dynamicweb.Indexing.Querying.Faceting
- Assembly
- Dynamicweb.Indexing.dll
The Class FacetResultLabelComparer used for comparing results based on facet result label
public class FacetResultLabelComparer : IComparer<FacetResult>, IComparer
- Inheritance
-
FacetResultLabelComparer
- Implements
- Inherited Members
Constructors
FacetResultLabelComparer()
Initializes new instance of facet result label comparer
public FacetResultLabelComparer()
FacetResultLabelComparer(IList<string>)
Initializes new instance of facet result label comparer
public FacetResultLabelComparer(IList<string> orderToMatch)
Parameters
Methods
Compare(FacetResult, FacetResult)
Compares two instances of facet results
public int Compare(FacetResult x, FacetResult y)
Parameters
x
FacetResult- First instance to be compared
y
FacetResult- Second instance to be compared
Returns
- int
- 0 if labels are equal, 1 if first instance is greater, otherwise -1
Remarks
if any instance equal null then returns 0
Compare(object, object)
Compares two instances of facet results as object
public int Compare(object x, object y)
Parameters
Returns
- int
- 0 if labels are equal, 1 if first instance is greater, otherwise -1
Remarks
if any instance equal null or cannot be casted to FacetResult then returns 0