Sets or returns the sort type for the field. You can specify whether to sort ascending or descending with the Sort constants.
VBScript
queryfielddef.SortType
queryfielddef.SortType NewValue
Perl
$queryfielddef->GetSortType();
$queryfielddef->SetSortType(NewValue);
VBScript
idfield.SetSortType AD_SORT_ASC
Perl
$idfield->SetSortType($CQPerlExt::CQ_SORT_ASC);