Assembly: OptimaJet.Workflow.Core

Class Sorting

OptimaJet.Workflow.Core.Persistence.Sorting

Specifies the field and direction used to sort a collection of records.

public class Sorting

Properties

public string FieldName { get; } #
Gets the name of the field used for sorting.
public SortDirection SortDirection { get; } #
Gets the direction used for sorting.

Methods

public static Sorting Create(string fieldName, SortDirection sortDirection = SortDirection.Asc) #
Creates a Sorting instance for the specified field.

Parameters

Name
Type
Description
fieldName
String
The name of the field to sort by.
sortDirection
SortDirection
The SortDirection to apply. The default is SortDirection.Asc.

Returns

Type
Description
Sorting
A Sorting instance configured with fieldName and sortDirection.