SortType
Description
Sets or returns the sort type for the field. You can specify whether to sort ascending or descending with the Sort constants.
Syntax
VBScript
queryfielddef.SortType
queryfielddef.SortType NewValue
Perl
$queryfielddef->GetSortType();
$queryfielddef->SetSortType(NewValue);
- Identifier
- Description
- queryfielddef
- A QueryFieldDef object.
- NewValue
- A Long that specifies the sort type for the field. The value corresponds to one of the Sort constants.
- Return value
- Returns a Long that identifies the sort type for the field. The value corresponds to one of the Sort constants.
Examples
VBScript
idfield.SetSortType AD_SORT_ASC
Perl
$idfield->SetSortType($CQPerlExt::CQ_SORT_ASC);