[]
        
(Showing Draft Content)

C1.Web.Mvc.Olap.Fluent.PivotFieldBaseBuilder-2.SortComparer

SortComparer Method

SortComparer(string)

Configurates SortComparer. Sets a function used to compare values when sorting.

Declaration
public TBuilder SortComparer(string value)
Parameters
Type Name Description
string value

The value.

Returns
Type Description
TBuilder

Current builder.

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.