When ordering matters for data rows for submission, this JQuery code takes care of the ordering