Probably the best solution is, a JavaScript one on the choose-to-edit screen (where we currently support mass-reordering).
On changing an order, starting from the ORIGINAL order of the field just changed, pull everything above it down, UNTIL you get to the new order which is assigned to the field just changed, THEN pull everything equal or above that up.
This should stop there getting awkward gaps.
(One can think of things like up/down arrows or gap-fixing after submitting the form, but people make dozens of CPFs and we have to use pagination, so these would not work well at all.)
By Guest,
By Guest,
posted
Implemented the new function 'change_order' in admin_cns_customprofilefields.php to do the sorting.
On changing an order, starting from the ORIGINAL order of the field just changed, pull everything above it down, UNTIL you get to the new order which is assigned to the field just changed, THEN pull everything equal or above that up.
This should stop there getting awkward gaps.
(One can think of things like up/down arrows or gap-fixing after submitting the form, but people make dozens of CPFs and we have to use pagination, so these would not work well at all.)