FireDAC.Phys.MongoDBWrapper.TMongoQuery.TSort.Field

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Field(const AName: String; AAscending: Boolean = True): TSort;

C++

TMongoQuery::TSort* __fastcall Field(const System::UnicodeString AName, bool AAscending = true);

Properties

Type Visibility Source Unit Parent
function public
FireDAC.Phys.MongoDBWrapper.pas
FireDAC.Phys.MongoDBWrapper.hpp
FireDAC.Phys.MongoDBWrapper TSort

Description

Adds the AName attribute to this query sorting, specifies the sort order, and returns a reference to this object.

Use this method to add an attribute to sort by and specify a respective sort order.

Note: To specify the ascending sort order, set the AAscending parameter to True. Otherwise, set this parameter to False.


See Also