FireDAC.Phys.MongoDBWrapper.TMongoQuery.Sort
Delphi
function Sort(const AJSON: String = ''): TSort;
C++
TSort* __fastcall Sort(const System::UnicodeString AJSON = System::UnicodeString());
Properties
| Type | Visibility | Source | Unit | Parent | 
|---|---|---|---|---|
| function | public | FireDAC.Phys.MongoDBWrapper.pas FireDAC.Phys.MongoDBWrapper.hpp | FireDAC.Phys.MongoDBWrapper | TMongoQuery | 
Description
Returns a reference to a sort builder, which specifies the order in which the query returns matching documents. Optionally, you may specify a JSON string that represents this stage.
For more information, see MongoDB documentation.