DtvLong dal_mas_set_ord_fld (idf, ord)

Sets the sort Id of the field.

Input Parameters Significance
DtvLong idf field Id
DtvLong ord sort Id of the field
positive digit = ascending sorting
negative digit = descending sorting
0 = no sorting

Output Parameters Significance
no -

Return Code Significance
0 no error

With the help of the sort Id you define that DataView sorts the records found in a query for the field contents. Sorting is based on the numerical value in case of the field types integer, float, and money, and on the alphabetic position in case of the string type.

The function automatically invoke any set mask listener function.