Class SortComparer
Class used to compare and sort the given collection.
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation.PivotAnalysis
Assembly: Syncfusion.XlsIO.NET.dll
Syntax
public class SortComparer : IComparer<object>
Constructors
SortComparer(List<string>, List<string>, List<IComparer>, GetValueDelegate)
Constructor that holds the information needed to perform comparison operation while sorting the PivotFields.
Declaration
public SortComparer(List<string> propertyNames, List<string> formats, List<IComparer> comparers, GetValueDelegate GetValue)
Parameters
| Type | Name | Description |
|---|---|---|
| List<string> | propertyNames | |
| List<string> | formats | |
| List<IComparer> | comparers | |
| GetValueDelegate | GetValue |
Methods
Compare(object, object)
Compares the different objects and populate the Pivot values based on the comparer assigned.
Declaration
public int Compare(object x, object y)
Parameters
| Type | Name | Description |
|---|---|---|
| object | x | |
| object | y |
Returns
| Type |
|---|
| int |