EasyObjects.NET Programmers Reference

DynamicQuery.AddOrderByFormat Method (String)

Adds an ORDER BY clause to the query. The field is formatted using the FieldFormat.

public virtual void AddOrderByFormat(
   string fieldName
);

Parameters

fieldName
The field to be added to the ORDER BY

Remarks

The default sort order is ascending.

Example

emps.Query.AddOrderBy("LastName")
emps.Query.AddOrderBy("FirstName")

See Also

DynamicQuery Class | NCI.EasyObjects Namespace | DynamicQuery.AddOrderByFormat Overload List