Are form values submitted in order?

I’m programming a webapp that will have a bunch of form fields that the user will be able to rearrange with Javascript.

What I want to know is if I need to devise a way to keep track of the order and submit that with the form or if when I parse the array of $_POST[] values if it will be in the order they were in the DOM on the page.