Table of Contents

TCriteria.OrderBySql Method

Adds an ordering clause to the query using a raw SQL expression.

Syntax

Unit: Aurelius.Criteria.Base

function TCriteria.OrderBySql(const Sql: string): TCriteria;

Parameters

<-> Parameter Type Description
const Sql string The raw SQL expression to use for ordering.

Returns

The current criteria instance to allow method chaining.

See also