FireDAC.Phys.MongoDBWrapper.TMongoPipeline.TSort.Field
Delphi
function Field(const AName: String; AAscending: Boolean = True): TSort;
C++
TMongoPipeline::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
field to this sort stage, specifies the sort order, and returns a reference to this sort stage.
Use this method to add a field to sort by and specify a respective sort order.
Note: To specify the ascending sort order, set the
AAscending
attribute toTrue
. Otherwise, set this attribute toFalse
.