ASP.NET MVC Controls | ComponentOne
C1.Web.Mvc.Olap Namespace / PivotFieldBase Class / SortComparer Property

In This Topic
    SortComparer Property (PivotFieldBase)
    In This Topic
    Gets or sets a function used to compare values when sorting.
    Syntax
    'Declaration
     
    
    <JsonConverterAttribute(C1.JsonNet.Converters.FunctionConverter)>
    Public Property SortComparer As String
    [JsonConverter(C1.JsonNet.Converters.FunctionConverter)]
    public string SortComparer {get; set;}
    Remarks
    If provided, the sort comparer function should take as parameters two values of any type, and should return -1, 0, or +1 to indicate whether the first value is smaller than, equal to, or greater than the second. If the sort comparer returns null, the standard built-in comparer is used.
    See Also