Creates a new OrderBy.
Namespace: Endeca.Navigation.AnalyticsAssembly: Endeca.Navigation (in Endeca.Navigation.dll) Version: 6.3.0.0 (6.3.0.853)
Syntax
C# |
---|
public OrderBy( string fieldName, bool isAscending ) |
Visual Basic |
---|
Public Sub New ( _ fieldName As String, _ isAscending As Boolean _ ) |
Visual C++ |
---|
public: OrderBy( String^ fieldName, bool isAscending ) |
Parameters
- fieldName
- Type: System..::..String
The name of the Endeca property or dimension by which the records will be ordered.
- isAscending
- Type: System..::..Boolean
true for an ascending sort or false for a descending sort.
Remarks
The new OrderBy specifies a sort
on an Endeca property or dimension indicated by
fieldName in a sort direction
specified by isAscending.
Examples
This sample:
specifies an ordering based on the Total property
with a descending sort of the records.
CopyC#
OrderByList o = new OrderByList(); o.add(new OrderBy("Total", false));