DtvLong dal_mas_ret_ord_fld (idf)

Returns the sort Id of the field.

Input Parameters Significance
DtvLong idf field Id

Output Parameters Significance
no -

Return Code Significance
value sort Id of the field
positive digit = ascending sorting
negative digit = descending sorting
0 = no sorting

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.