Version Ref: 6.0.00
For user defined arrays only.
xx = SORTARRAY(dat,"0")
where ("0"|"A") is ascending,
("1"|"D") is descending.
Works with ONLY dummy field types. It does not work with mapped fields
to real fields.
Returns -1 on error.