Class PivotEngine.CalcSortComparer
This class used for sorting the Pivoted row/column.
Inheritance
System.Object
PivotEngine.CalcSortComparer
Implements
System.Collections.Generic.IComparer<PivotEngine.SortKeys>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.PivotAnalysis.Base
Assembly: Syncfusion.PivotAnalysis.Base.dll
Syntax
public class CalcSortComparer : IComparer<PivotEngine.SortKeys>
Constructors
CalcSortComparer(List<ListSortDirection>)
Initializes a new instance of the PivotEngine.CalcSortComparer class.
Declaration
public CalcSortComparer(List<ListSortDirection> sortDirs)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<System.ComponentModel.ListSortDirection> | sortDirs | The sort direction. |
Methods
Compare(PivotEngine.SortKeys, PivotEngine.SortKeys)
Compares the sort direction of the PivotFields using key.
Declaration
public int Compare(PivotEngine.SortKeys x, PivotEngine.SortKeys y)
Parameters
Type | Name | Description |
---|---|---|
PivotEngine.SortKeys | x | The key to compare sort directions. |
PivotEngine.SortKeys | y | The key to compare sort directions. |
Returns
Type |
---|
System.Int32 |
Implements
System.Collections.Generic.IComparer<T>