Class GroupComparer
Compares two groups to perform sort operation based on the keys of the groups.
Inheritance
System.Object
GroupComparer
Implements
System.Collections.Generic.IComparer<Group>
Namespace: Syncfusion.Data
Assembly: Syncfusion.Data.WPF.dll
Syntax
public class GroupComparer : Object, IComparer<Group>
Constructors
GroupComparer()
Initializes a new instance of the GroupComparer class.
Declaration
public GroupComparer()
Properties
SortDirection
Gets or sets the direction of sorting.
Declaration
public ListSortDirection SortDirection { get; set; }
Property Value
Type | Description |
---|---|
System.ComponentModel.ListSortDirection | The direction of sorting. |
Methods
Compare(Group, Group)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Declaration
public int Compare(Group group1, Group group2)
Parameters
Type | Name | Description |
---|---|---|
Group | group1 | The first object to compare. |
Group | group2 | The second object to compare. |
Returns
Type | Description |
---|---|
System.Int32 | Returns a value Less than zero, if
Returns Zero, if
Returns a value Greater than zero, |
Implements
System.Collections.Generic.IComparer<T>