menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SortComparer - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SortComparer

    Class used to compare and sort the given collection.

    Inheritance
    System.Object
    SortComparer
    Implements
    System.Collections.Generic.IComparer<System.Object>
    Namespace: Syncfusion.PivotAnalysis.UWP
    Assembly: Syncfusion.PivotAnalysis.UWP.dll
    Syntax
    public class SortComparer : Object, 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
    System.Collections.Generic.List<System.String> propertyNames

    The list of item names.

    System.Collections.Generic.List<System.String> formats

    The list of formats.

    System.Collections.Generic.List<System.Collections.IComparer> comparers

    The list of comparers.

    GetValueDelegate GetValue

    The delegate value.

    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
    System.Object x

    The first value to compare.

    System.Object y

    The second value to compare.

    Returns
    Type
    System.Int32

    Implements

    System.Collections.Generic.IComparer<>

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved