sortFormFields

Sort the form fields in row-major order.
sortFormFields([in] int mode)
Sorts the form fields by location, in row-major order, i.e., uppermost row first, from left to right, and then proceeding down the page.

The mode argument is currently unused and should be set to zero.

VB6:
pdf.sortFormFields 0