Version 7 - When Reordering fields in a doctype after save it will disarrange

When reordering a fields in a doctype after save it will randomly disarrange.

Use Case

  1. Go to SetUp → DocType
  2. Search for Company and Click “Company” Record
  3. In the Fields Section drag “Website” field (number 48) to “Phone No” field (number 45).
  4. Click save, as you can see the fields website, phone no is disarrange. see image for illustration

Original Order of fields.

Screenshot after dragging Website Fields

After save fields are disarrange randomly

https://github.com/frappe/frappe/issues/1773

fix [fix] [bug] grid-reorder · frappe/frappe@d613820 · GitHub