move
Moves a field of the field array to a new position and rearranges all fields in between.
move(form, name, options);
Parameters
formFormStorenamestringoptionsobjectfromnumbertonumber
Explanation
With from you set the index of the item to be moved to the index defined under to. The action is executed only if both indexes are valid.