Class GroupComparer
Compares two groups to perform sort operation based on the keys of the groups.
Inherited Members
Namespace: Syncfusion.Maui.Data
Assembly: Syncfusion.Maui.Data.dll
Syntax
public class GroupComparer : 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 |
|---|---|
| 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 |
|---|---|
| int | Returns a value Less than zero, if Returns Zero, if Returns a value Greater than zero, |